Update
This commit is contained in:
1 parent
84507fc2f7
commit
3dd567e2fe
1 file changed
+1
-4
@@ -30,10 +30,7 @@ let LAST_RATELIMIT_LOG = 0, LAST_STATS_LOG = 0, RATELIMIT_RESET = nextRateLimitR
|
|||||||
|
|
||||||
const checkRateLimit = () => {
|
const checkRateLimit = () => {
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
if (now - LAST_STATS_LOG >= BUFFER_STATS_INTERVAL && BULK_REPORT_BUFFER.size > 0) {
|
if (now - LAST_STATS_LOG >= BUFFER_STATS_INTERVAL && BULK_REPORT_BUFFER.size > 0) LAST_STATS_LOG = now;
|
||||||
log(0, `Buffer size: ${BULK_REPORT_BUFFER.size} IPs currently queued`);
|
|
||||||
LAST_STATS_LOG = now;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ABUSE_STATE.isLimited) {
|
if (ABUSE_STATE.isLimited) {
|
||||||
if (now >= RATELIMIT_RESET.getTime()) {
|
if (now >= RATELIMIT_RESET.getTime()) {
|
||||||
|
|||||||
Reference in new issue
Block a user