increased a limit of requests per hour

This commit is contained in:
Vokhmin Alexey V 2014-12-13 02:00:24 +03:00
parent 0acb38109f
commit a3ee77c94a
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class ApiDefender < Rack::Throttle::Hourly
options = { options = {
cache: Redis.new(thread_safe: true), cache: Redis.new(thread_safe: true),
key_prefix: :throttle, key_prefix: :throttle,
max: 2000 # only 2000 request per hour max: 3000 # only 3000 request per hour
} }
@app, @options = app, options @app, @options = app, options
end end