Skip to content

Commit f21bb32

Browse files
authored
fix: update async client to use async retry (#544)
Co-authored-by: omair <omairn@google.com>
1 parent 4c44089 commit f21bb32

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
from google.api_core import exceptions as core_exceptions
2828
from google.api_core import gapic_v1, page_iterator_async
29-
from google.api_core import retry as retries
29+
from google.api_core import retry_async as retries
3030
from google.api_core import timeout as timeouts
3131
from google.longrunning import operations_pb2
3232
from grpc import Compression
@@ -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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy