Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions google/api_core/bidi.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ class ResumableBidiRpc(BidiRpc):
def should_recover(exc):
return (
isinstance(exc, grpc.RpcError) and
exc.code() == grpc.StatusCode.UNVAILABLE)
exc.code() == grpc.StatusCode.UNAVAILABLE)

initial_request = example_pb2.StreamingRpcRequest(
setting='example')
Expand Down Expand Up @@ -589,7 +589,7 @@ class BackgroundConsumer(object):
def should_recover(exc):
return (
isinstance(exc, grpc.RpcError) and
exc.code() == grpc.StatusCode.UNVAILABLE)
exc.code() == grpc.StatusCode.UNAVAILABLE)

initial_request = example_pb2.StreamingRpcRequest(
setting='example')
Expand Down