From 351395b11633a49d5750e8c436222ca2fc032f4b Mon Sep 17 00:00:00 2001 From: ziyeqf <51212351+ziyeqf@users.noreply.github.com> Date: Fri, 18 Oct 2024 15:45:17 +0800 Subject: [PATCH] revert non-related change --- sdk/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/client/client.go b/sdk/client/client.go index fa2ce908e4..99d7993933 100644 --- a/sdk/client/client.go +++ b/sdk/client/client.go @@ -699,7 +699,7 @@ func (c *Client) retryableClient(ctx context.Context, checkRetry retryablehttp.C // This results into the following N(t) (by guaranteeing T(n) <= t): // - n = floor(log(t+1)) - 1 (0<=t<=63) // - n = (t - 63)/61 + 6 (t > 63) - safeRetryNumber := func(t time.Duration) int { + var safeRetryNumber := func(t time.Duration) int { sec := t.Seconds() if sec <= 63 { return int(math.Floor(math.Log2(sec+1))) - 1