Merge pull request #877 from warpc/876-increase-limit-of-requests

[refs #876]: increase limit of requests per hour from 500 to 2000
This commit is contained in:
Vladimir Sharshov 2013-01-31 05:44:12 -08:00
commit 0dc85a2a38
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 => 500 # only 500 request per hour :max => 2000 # only 2000 request per hour
} }
@app, @options = app, options @app, @options = app, options
end end