From d8b88cfb84d9633a5f7a200996d1634f618b7e2b Mon Sep 17 00:00:00 2001 From: Gonzalo Rodriguez Date: Thu, 21 Jun 2018 11:24:54 -0300 Subject: [PATCH] Honor amount argument instead of hard coding counter (part 2) See commit ca2e75293780d150f9bd6ab79a6c381b2640f20d --- lib/rack/attack/store_proxy/redis_cache_store_proxy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rack/attack/store_proxy/redis_cache_store_proxy.rb b/lib/rack/attack/store_proxy/redis_cache_store_proxy.rb index 810994c..f99de36 100644 --- a/lib/rack/attack/store_proxy/redis_cache_store_proxy.rb +++ b/lib/rack/attack/store_proxy/redis_cache_store_proxy.rb @@ -16,7 +16,7 @@ module Rack if options[:expires_in] && !read(name) write(name, amount, options) - 1 + amount else super end