mirror of
https://github.com/unclechu/gRPC-haskell.git
synced 2024-12-24 02:39:45 +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
|
||||
withGRPC $ \grpc ->
|
||||
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
|
||||
case reqResult of
|
||||
Left x -> error $ "Got client error: " ++ show x
|
||||
|
|
Loading…
Reference in a new issue