From 2088df100ed17bc8a4f3ba74ac8fd03c38d06750 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Tue, 13 Apr 2021 14:32:47 +0200 Subject: [PATCH] fix(rest): processRateLimitedPaths use continue instead of return --- src/rest/process_rate_limited_paths.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rest/process_rate_limited_paths.ts b/src/rest/process_rate_limited_paths.ts index 2f9c5c051..d0a211211 100644 --- a/src/rest/process_rate_limited_paths.ts +++ b/src/rest/process_rate_limited_paths.ts @@ -11,7 +11,7 @@ export function processRateLimitedPaths() { `Running forEach loop in process_rate_limited_paths file.`, ); // IF THE TIME HAS NOT REACHED CANCEL - if (value.resetTimestamp > now) return; + if (value.resetTimestamp > now) continue; // RATE LIMIT IS OVER, DELETE THE RATE LIMITER rest.ratelimitedPaths.delete(key);