Skip to content

Commit

Permalink
Merge branch 'upstream'
Browse files Browse the repository at this point in the history
  • Loading branch information
vietthedev committed Nov 26, 2024
2 parents b58fa05 + 6b1a48e commit bc6a5f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ export const fetchRetry = async (...args) => {
}

if (response.status === RATE_LIMITING_HTTP_ERROR_CODE) {
console.log(`Waiting for ${CLOUDFLARE_RATE_LIMITING_COOLDOWN_TIME / 1000 / 60} minutes to avoid rate limiting.`);
await wait(CLOUDFLARE_RATE_LIMITING_COOLDOWN_TIME);
}
}
Expand Down

0 comments on commit bc6a5f0

Please sign in to comment.