Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Mar 15, 2024
1 parent f9dab5d commit 1986b06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion google/cloud/bigtable/data/_metrics/data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ def start_attempt(self) -> None:
if self.backoff_generator and len(self.completed_attempts) > 0:
# find the attempt's backoff by sending attempt number to generator
# generator will return the backoff time in seconds, so convert to nanoseconds
backoff = self.backoff_generator.get_attempt_backoff(len(self.completed_attempts) - 1)
backoff = self.backoff_generator.get_attempt_backoff(
len(self.completed_attempts) - 1
)
backoff_ns = int(backoff * 1e9)
else:
backoff_ns = 0
Expand Down

0 comments on commit 1986b06

Please sign in to comment.