Skip to content

Commit 82ad41c

Browse files
committed
refactor: address feedback
1 parent f655ffe commit 82ad41c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/handler/retry-handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class RetryHandler {
158158
const retryTimeout =
159159
retryAfterHeader > 0
160160
? Math.min(retryAfterHeader, maxTimeout)
161-
: Math.min(minTimeout * timeoutFactor ** counter, maxTimeout)
161+
: Math.min(minTimeout * timeoutFactor ** (counter - 1), maxTimeout)
162162

163163
setTimeout(() => cb(null), retryTimeout)
164164
}

0 commit comments

Comments
 (0)