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

Commitf21bb32

Browse files
authored
fix: update async client to use async retry (#544)
Co-authored-by: omair <omairn@google.com>
1 parent4c44089 commitf21bb32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎google/api_core/operations_v1/operations_async_client.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
fromgoogle.api_coreimportexceptionsascore_exceptions
2828
fromgoogle.api_coreimportgapic_v1,page_iterator_async
29-
fromgoogle.api_coreimportretryasretries
29+
fromgoogle.api_coreimportretry_asyncasretries
3030
fromgoogle.api_coreimporttimeoutastimeouts
3131
fromgoogle.longrunningimportoperations_pb2
3232
fromgrpcimportCompression
@@ -48,7 +48,7 @@ def __init__(self, channel, client_config=None):
4848
# Create the gRPC client stub with gRPC AsyncIO channel.
4949
self.operations_stub=operations_pb2.OperationsStub(channel)
5050

51-
default_retry=retries.Retry(
51+
default_retry=retries.AsyncRetry(
5252
initial=0.1,# seconds
5353
maximum=60.0,# seconds
5454
multiplier=1.3,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp