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.
This commit is contained in:
parent
57db3c1fbe
commit
563253e9ed
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue