From 8d1c46840ba52acd40bdc027fc915f8c42d48561 Mon Sep 17 00:00:00 2001 From: Bossett Date: Tue, 31 Dec 2024 06:17:30 +0000 Subject: [PATCH] reduce retry timer --- src/addn/rateLimit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addn/rateLimit.ts b/src/addn/rateLimit.ts index e58ca3a..bb53a89 100644 --- a/src/addn/rateLimit.ts +++ b/src/addn/rateLimit.ts @@ -14,7 +14,7 @@ const limit = async (fn: () => Promise, retries = 3): Promise => { if (retries > 0) { console.log(`retrying limited call:\n${fn.toString()}`) const delay = (ms: number) => new Promise((res) => setTimeout(res, ms)) - await delay(10000) + await delay(3000) return await limit(fn, retries - 1) } else { console.log(`error in limited call:\n${fn.toString()}\n${error}`)