Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0eb727f

Browse files
authored
docs: Fix typo in the BackgroundConsumer docstring (#395)
`UNAVAILABLE` instead of `UNVAILABLE`Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-api-core/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea- [ ] Ensure the tests and linter pass- [ ] Code coverage does not decrease (if any source code was changed)- [ ] Appropriate docs were updated (if necessary)Fixes #<issue_number_goes_here> 🦕
1 parentac266e9 commit0eb727f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎google/api_core/bidi.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ class ResumableBidiRpc(BidiRpc):
364364
def should_recover(exc):
365365
return (
366366
isinstance(exc, grpc.RpcError) and
367-
exc.code() == grpc.StatusCode.UNVAILABLE)
367+
exc.code() == grpc.StatusCode.UNAVAILABLE)
368368
369369
initial_request = example_pb2.StreamingRpcRequest(
370370
setting='example')
@@ -589,7 +589,7 @@ class BackgroundConsumer(object):
589589
def should_recover(exc):
590590
return (
591591
isinstance(exc, grpc.RpcError) and
592-
exc.code() == grpc.StatusCode.UNVAILABLE)
592+
exc.code() == grpc.StatusCode.UNAVAILABLE)
593593
594594
initial_request = example_pb2.StreamingRpcRequest(
595595
setting='example')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp