mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 00:40:07 +00:00
fix: being in a loop is not a good sign
This commit is contained in:
@@ -55,7 +55,7 @@ export function createInvalidRequestBucket(options: InvalidRequestBucketOptions)
|
||||
bucket.processing = true
|
||||
|
||||
while (bucket.waiting.length > 0) {
|
||||
logger.debug(`[InvalidBucket] processing waiting queue while loop ran with ${bucket.waiting.length} pending requests to be made. ${JSON.stringify(bucket)}`)
|
||||
logger.info(`[InvalidBucket] processing waiting queue while loop ran with ${bucket.waiting.length} pending requests to be made. ${JSON.stringify(bucket)}`)
|
||||
|
||||
if (!bucket.isRequestAllowed() && bucket.resetAt !== undefined) {
|
||||
logger.warn(`[InvalidBucket] processing waiting queue is now paused until more requests are available. ${bucket.waiting.length} pending requests. ${JSON.stringify(bucket)}`)
|
||||
|
||||
Reference in New Issue
Block a user