Skip to content

Commit

Permalink
Don't affect non-streaming case
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostdogpr committed Jul 17, 2024
1 parent 36b1c38 commit 3dc6341
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ object ClientCalls {

def exitHandler[Req, Res](
call: ZClientCall[Req, Res]
)(l: Any, ex: Exit[StatusException, Any]) = anyExitHandler(call)(l, ex)
)(l: Any, ex: Exit[StatusException, Any]) =
ZIO.when(!ex.isSuccess) {
anyExitHandler(call)(l, ex)
}

// less type safe
def anyExitHandler[Req, Res](
Expand Down

0 comments on commit 3dc6341

Please sign in to comment.