From 1986b06d4e3336c67c698d68d04a2e8073a55923 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 15 Mar 2024 21:38:19 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- google/cloud/bigtable/data/_metrics/data_model.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/google/cloud/bigtable/data/_metrics/data_model.py b/google/cloud/bigtable/data/_metrics/data_model.py index a79856b77..af306fdcb 100644 --- a/google/cloud/bigtable/data/_metrics/data_model.py +++ b/google/cloud/bigtable/data/_metrics/data_model.py @@ -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