mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-26 09:35:49 +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]
|
||||
end
|
||||
@limit = options[:limit]
|
||||
@period = options[:period]
|
||||
@period = options[:period].to_i
|
||||
end
|
||||
|
||||
def cache
|
||||
|
|
|
|||
Loading…
Reference in a new issue