Skip to content

Commit 2ae79bb

Browse files
committed
Lint and precommit
1 parent 71b77e1 commit 2ae79bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def _export(
334334
backoff_seconds,
335335
)
336336
sleep(backoff_seconds)
337-
backoff_seconds = 2 ** retry_num * random.uniform(0.8, 1.2)
337+
backoff_seconds = 2**retry_num * random.uniform(0.8, 1.2)
338338
# Not possible to reach here but the linter is complaining.
339339
return self._result.FAILURE
340340

exporter/opentelemetry-exporter-otlp-proto-grpc/tests/test_otlp_exporter_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def Export(self, request, context):
104104
if self.optional_export_sleep:
105105
time.sleep(self.optional_export_sleep)
106106
if self.export_result != StatusCode.OK:
107-
if self.optional_retry_millis and self.num_requests == 1:
107+
if self.optional_retry_millis:
108108
context.set_trailing_metadata(
109109
(
110110
(

0 commit comments

Comments
 (0)