This commit is contained in:
dahyeon committed 2026-04-26 03:42:45 -07:00
1 parent 285f72b3ee
commit 4bad21c2d8
4 files changed
+124 -8

No files matched your search

@@ -148,10 +148,9 @@ export class RiotClientService {
const error = await this.createApiError(response, url);
if (
error.status === 429 &&
attempt === 0 &&
error.retryAfterSeconds !== undefined
attempt === 0
) {
await sleep(error.retryAfterSeconds * 1000);
await sleep((error.retryAfterSeconds ?? 1) * 1000);
return this.fetchWithRetry(
url,
apiKey,