mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-12-01 04:04:24 +01:00
fix: maxRetry hit infinite loop with negative input
This commit is contained in:
5 files changed
+30
-5
No files matched your search
+1
-1
@@ -17699,7 +17699,7 @@ async function retryAndBackoff(fn, isRetryable, maxRetries = 12, retries = 0, ba
|
||||
// It's retryable, so sleep and retry.
|
||||
await sleep(Math.random() * (Math.pow(2, retries) * base));
|
||||
retries += 1;
|
||||
if (retries === maxRetries) {
|
||||
if (retries >= maxRetries) {
|
||||
throw err;
|
||||
}
|
||||
return await retryAndBackoff(fn, isRetryable, maxRetries, retries, base);
|
||||
|
||||
Reference in new issue
Block a user