.
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user