From ada771bd46a4dd7827f64b98b787ef760b3ff3b6 Mon Sep 17 00:00:00 2001 From: Jacinda Moore Date: Tue, 11 Jun 2019 10:20:01 -0400 Subject: [PATCH] Interval must be an integer, not a float --- lib/sidekiq-rate-limiter/fetch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq-rate-limiter/fetch.rb b/lib/sidekiq-rate-limiter/fetch.rb index 876c956..a2d0372 100644 --- a/lib/sidekiq-rate-limiter/fetch.rb +++ b/lib/sidekiq-rate-limiter/fetch.rb @@ -26,7 +26,7 @@ def limit(work) options = { :limit => (limit.respond_to?(:call) ? limit.call(*args) : limit).to_i, - :interval => (interval.respond_to?(:call) ? interval.call(*args) : interval).to_f, + :interval => (interval.respond_to?(:call) ? interval.call(*args) : interval).to_i, :name => (name.respond_to?(:call) ? name.call(*args) : name).to_s, }