mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-11-23 11:39:43 +01:00
Also fix clientRegisterMethod use in echo client example
This commit is contained in:
parent
a757e02c30
commit
8a31c475ac
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ regClient :: IO ()
|
||||||
regClient = do
|
regClient = do
|
||||||
withGRPC $ \grpc ->
|
withGRPC $ \grpc ->
|
||||||
withClient grpc (ClientConfig "localhost" 50051) $ \client -> ntimes 100000 $ do
|
withClient grpc (ClientConfig "localhost" 50051) $ \client -> ntimes 100000 $ do
|
||||||
regMethod <- clientRegisterMethod client echoMethod "localhost:50051" Normal
|
regMethod <- clientRegisterMethod client echoMethod Normal
|
||||||
reqResult <- clientRegisteredRequest client regMethod 1 "hi" M.empty
|
reqResult <- clientRegisteredRequest client regMethod 1 "hi" M.empty
|
||||||
case reqResult of
|
case reqResult of
|
||||||
Left x -> error $ "Got client error: " ++ show x
|
Left x -> error $ "Got client error: " ++ show x
|
||||||
|
|
Loading…
Reference in a new issue