From 389c66c26b8bf264997e727bd27175436d040fca Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Sat, 16 Mar 2024 20:53:39 +1100 Subject: [PATCH] Improve the code comment for API ratelimit that is set by GIANTS --- src/modules/MPModule.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/MPModule.ts b/src/modules/MPModule.ts index f027d3d..4143272 100644 --- a/src/modules/MPModule.ts +++ b/src/modules/MPModule.ts @@ -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; }