FIX: Fix options given to per-minute rate limiter

FIX: Fix options given to per-minute rate limiter

Previously the options for the per-minute and per-10-second rate limiters were the same.

diff --git a/lib/middleware/request_tracker.rb b/lib/middleware/request_tracker.rb
index 607912e..897a09a 100644
--- a/lib/middleware/request_tracker.rb
+++ b/lib/middleware/request_tracker.rb
@@ -247,8 +247,8 @@ class Middleware::RequestTracker
       limiter60 = RateLimiter.new(
         nil,
         "global_ip_limit_60_#{ip}",
-        GlobalSetting.max_reqs_per_ip_per_10_seconds,
-        10,
+        GlobalSetting.max_reqs_per_ip_per_minute,
+        60,
         global: true
       )

GitHub sha: 563253e9

1 Like