Merge pull request #21 from dev-coco/main

Update utils.mjs
This commit is contained in:
Guilherme Oenning 2024-01-28 19:09:47 +00:00 committed by GitHub
commit 356017ac7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,7 @@ export async function batch(task, items, batchSize, onBatchComplete) {
}
}
export async function fetchRetry(url, options, retries = 3) {
export async function fetchRetry(url, options, retries = 5) {
try {
const response = await fetch(url, options);
if (response.status >= 500) {