Skip to content

Commit 05bd4b1

Browse files
committed
remove retryAttempt
1 parent 64e8ad4 commit 05bd4b1

File tree

1 file changed

+2
-5
lines changed
  • gapic/templates/%namespace/%name_%version/%sub/services/%service/transports

1 file changed

+2
-5
lines changed

gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/rest.py.j2

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33

44
{% block content %}
55

6+
import logging
7+
import json # type: ignore
68

79
from google.auth.transport.requests import AuthorizedSession # type: ignore
8-
import json # type: ignore
910
from google.auth import credentials as ga_credentials # type: ignore
1011
from google.api_core import exceptions as core_exceptions
1112
from google.api_core import retry as retries
@@ -40,9 +41,6 @@ try:
4041
except AttributeError: # pragma: NO COVER
4142
OptionalRetry = Union[retries.Retry, object, None] # type: ignore
4243

43-
44-
import logging
45-
4644
try: # pragma: NO COVER
4745
from google.api_core import client_logging # type: ignore
4846
CLIENT_LOGGING_SUPPORTED = True
@@ -263,7 +261,6 @@ class {{service.name}}RestTransport(_Base{{ service.name }}RestTransport):
263261
extra = {
264262
"serviceName": "{{ service.meta.address.proto }}",
265263
"rpcName": "{{ method.name }}",
266-
"retryAttempt": 1,
267264
"response": {% if method.output.ident.is_proto_plus_type %}{{ method.output.ident }}.to_json(resp){% else %}json_format.MessageToJson(resp){% endif %},
268265
"metadata": str(dict(response.headers)),
269266
},

0 commit comments

Comments
 (0)