This commit is contained in:
Sefinek committed 2025-04-13 22:53:13 +02:00
1 parent 84507fc2f7
commit 3dd567e2fe
1 file changed
+1 -4
+1 -4
View File
@@ -30,10 +30,7 @@ let LAST_RATELIMIT_LOG = 0, LAST_STATS_LOG = 0, RATELIMIT_RESET = nextRateLimitR
const checkRateLimit = () => {
const now = Date.now();
if (now - LAST_STATS_LOG >= BUFFER_STATS_INTERVAL && BULK_REPORT_BUFFER.size > 0) {
log(0, `Buffer size: ${BULK_REPORT_BUFFER.size} IPs currently queued`);
LAST_STATS_LOG = now;
}
if (now - LAST_STATS_LOG >= BUFFER_STATS_INTERVAL && BULK_REPORT_BUFFER.size > 0) LAST_STATS_LOG = now;
if (ABUSE_STATE.isLimited) {
if (now >= RATELIMIT_RESET.getTime()) {