Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Commit e85dbe4

Browse files
authored
Merge pull request #420 from netlify/fix/max-retry
fix: decrease the number of API retries
2 parents 7948959 + 3ec3be2 commit e85dbe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/methods/retry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const sleep = function (ms) {
3737
const DEFAULT_RETRY_DELAY = 5e3
3838
const MIN_RETRY_DELAY = 1e3
3939
const SECS_TO_MSECS = 1e3
40-
const MAX_RETRY = 10
40+
const MAX_RETRY = 5
4141
const RATE_LIMIT_STATUS = 429
4242
const RATE_LIMIT_HEADER = 'X-RateLimit-Reset'
4343
const RETRY_ERROR_CODES = new Set(['ETIMEDOUT', 'ECONNRESET'])

0 commit comments

Comments
 (0)