mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-16 20:00:59 -05:00
Improve the code comment for API ratelimit that is set by GIANTS
This commit is contained in:
parent
7fdd5ee63e
commit
389c66c26b
@ -152,7 +152,8 @@ export async function requestServerData(client:TClient, server:IServerExt):Promi
|
||||
}
|
||||
await new Promise(resolve=>setTimeout(resolve, delay));
|
||||
delay *= 2;
|
||||
console.log('Request delayed by %d for %s', delay, server.serverName);
|
||||
Logger.console('log', loggingPrefix, `Request delayed by ${delay} for ${server.serverName}`);
|
||||
// Workaround for the API ratelimit (seen by panel responding with HTTP 400 apparently...)
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user