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:
Daniel Waterworth 2019-09-20 09:21:37 +01:00
parent 57db3c1fbe
commit 563253e9ed
1 changed files with 2 additions and 2 deletions

View File

@ -247,8 +247,8 @@ class Middleware::RequestTracker
limiter60 = RateLimiter.new( limiter60 = RateLimiter.new(
nil, nil,
"global_ip_limit_60_#{ip}", "global_ip_limit_60_#{ip}",
GlobalSetting.max_reqs_per_ip_per_10_seconds, GlobalSetting.max_reqs_per_ip_per_minute,
10, 60,
global: true global: true
) )