Skip to content

Commit ef8bb81

Browse files
authored
Fixing precompile timeout handling (#88)
1 parent 7ff0517 commit ef8bb81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gRPCClient.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ export gRPCServiceCallException
191191
grpc_async_await(req)
192192
end
193193
catch ex
194-
!isa(ex, gRPCServiceCallException) &&
195-
ex.code == DEADLINE_EXCEEDED &&
194+
if !(isa(ex, gRPCServiceCallException) && ex.grpc_status == GRPC_DEADLINE_EXCEEDED)
196195
rethrow(ex)
196+
end
197197

198198
@warn """
199199
DEADLINE_EXCEEDED during gRPCClient.jl precompile

0 commit comments

Comments
 (0)