mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
chore: lint
This commit is contained in:
parent
e8f2180279
commit
3f77cca7af
1 changed files with 2 additions and 2 deletions
|
@ -13,9 +13,9 @@ export async function retryOnThrottled<T>(f: () => Promise<T>, retryCount = 5):
|
|||
return await f();
|
||||
} catch (err) {
|
||||
// RATE_LIMIT_EXCEEDED
|
||||
if (err?.id === 'd5826d14-3982-4d2e-8011-b9e9f02499ef') {
|
||||
if ((err as T)?.id === 'd5826d14-3982-4d2e-8011-b9e9f02499ef') {
|
||||
lastError = err;
|
||||
await sleep(err?.info?.fullResetMs ?? 1000);
|
||||
await sleep((err as T)?.info?.fullResetMs ?? 1000);
|
||||
} else {
|
||||
throw err;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue