mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-04-27 15:07:41 +00:00
Merge pull request #14 from hanchang/master
Redis::CommandError (ERR value is not an integer or out of range):
This commit is contained in:
commit
e917fcc2b5
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ module Rack
|
||||||
raise ArgumentError.new("Must pass #{opt.inspect} option") unless options[opt]
|
raise ArgumentError.new("Must pass #{opt.inspect} option") unless options[opt]
|
||||||
end
|
end
|
||||||
@limit = options[:limit]
|
@limit = options[:limit]
|
||||||
@period = options[:period]
|
@period = options[:period].to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
def cache
|
def cache
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue