Skip to content

Commit

Permalink
Interval must be an integer, not a float
Browse files Browse the repository at this point in the history
  • Loading branch information
lavaturtle committed Jun 11, 2019
1 parent c163145 commit ada771b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq-rate-limiter/fetch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand Down

0 comments on commit ada771b

Please sign in to comment.