diff --git a/convex/ebay.ts b/convex/ebay.ts index 6258cfd9..33195b8a 100644 --- a/convex/ebay.ts +++ b/convex/ebay.ts @@ -184,7 +184,11 @@ function isRateLimitError(message: string): boolean { } function getBackoffMs(consecutiveFailures: number, rateLimited: boolean) { - const base = rateLimited ? 2 * BASE_REFRESH_MS : BASE_REFRESH_MS / 2 + if (rateLimited) { + return BASE_REFRESH_MS + } + + const base = BASE_REFRESH_MS / 2 const multiplier = Math.max(1, consecutiveFailures) return Math.min(base * multiplier, MAX_BACKOFF_MS) }