Skip to content

Commit

Permalink
docs: Fix typo in the BackgroundConsumer docstring (#395)
Browse files Browse the repository at this point in the history
`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> 🦕
  • Loading branch information
Mariatta authored Jun 2, 2022
1 parent ac266e9 commit 0eb727f
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 0eb727f

Please sign in to comment.