Skip to content

Commit

Permalink
revert non-related change
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyeqf committed Oct 18, 2024
1 parent b2b361e commit 351395b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 351395b

Please sign in to comment.