chore: lint
This commit is contained in:
@@ -13,9 +13,9 @@ export async function retryOnThrottled<T>(f: () => Promise<T>, retryCount = 5):
|
|||||||
return await f();
|
return await f();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// RATE_LIMIT_EXCEEDED
|
// RATE_LIMIT_EXCEEDED
|
||||||
if (err?.id === 'd5826d14-3982-4d2e-8011-b9e9f02499ef') {
|
if ((err as T)?.id === 'd5826d14-3982-4d2e-8011-b9e9f02499ef') {
|
||||||
lastError = err;
|
lastError = err;
|
||||||
await sleep(err?.info?.fullResetMs ?? 1000);
|
await sleep((err as T)?.info?.fullResetMs ?? 1000);
|
||||||
} else {
|
} else {
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user