Skip to content

Commit

Permalink
Documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
abizjak committed Oct 19, 2023
1 parent f42f16d commit 5591bd6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Concordium/Client/Runner/Helper.hs
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,12 @@ toGRPCResult' =
let hs = map (\(hn, hv) -> (CI.mk hn, hv)) hds
in StatusOk (GRPCResponse hs t)

-- |A helper type to indicate whether a failed RPC call should be retried or
-- not. This is used internally by the @withUnary@ method.
data Retry a
= Retry
| DoNotRetry (GRPCResult a)
| -- | A call failed with the given 'GRPCResult', and will not be retried.
DoNotRetry (GRPCResult a)

-- | Convert a GRPC helper output to a unified result type.
toGRPCResult :: Either (Retry t) (GRPCOutput t) -> GRPCResult t
Expand Down

0 comments on commit 5591bd6

Please sign in to comment.