Skip to content

Commit

Permalink
fix shardReader for grpc-haskell (#1525)
Browse files Browse the repository at this point in the history
  • Loading branch information
YangKian authored Jul 21, 2023
1 parent 38abd18 commit e70633a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hstream/src/HStream/Server/Handler/ShardReader.hs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ readShardStreamHandler sc (ServerWriterRequest _meta req streamSend) =
defaultServerStreamExceptionHandle $ do
Log.debug $ "Receive read shard stream Request: " <> Log.build (show req)
C.readShardStream sc req streamWrite
return $ ServerWriterResponse mempty StatusUnknown "should not reach here"
returnServerStreamingResp StatusOk ""
where
streamWrite x = first show <$> streamSend x

Expand All @@ -135,7 +135,7 @@ readStreamHandler sc (ServerWriterRequest _meta req streamSend) =
defaultServerStreamExceptionHandle $ do
Log.debug $ "Receive read shard stream Request: " <> Log.build (show req)
C.readStream sc req streamWrite
return $ ServerWriterResponse mempty StatusUnknown "should not reach here"
returnServerStreamingResp StatusOk ""
where
streamWrite x = first show <$> streamSend x

Expand All @@ -154,7 +154,7 @@ readSingleShardStreamHandler sc (ServerWriterRequest _meta req streamSend) =
defaultServerStreamExceptionHandle $ do
Log.debug $ "Receive read single shard stream Request: " <> Log.build (show req)
C.readSingleShardStream sc req streamWrite
return $ ServerWriterResponse mempty StatusUnknown "should not reach here"
returnServerStreamingResp StatusOk ""
where
streamWrite x = first show <$> streamSend x

Expand Down

0 comments on commit e70633a

Please sign in to comment.