Skip to content

Commit

Permalink
Appease standardrb
Browse files Browse the repository at this point in the history
  • Loading branch information
julik committed Nov 8, 2023
1 parent 4f76a3b commit b5414fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pecorino/throttle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ def initialize(from_throttle, state)
# @param block_for[Numeric] the number of seconds to block any further requests for
# @param leaky_bucket_options Options for `Pecorino::LeakyBucket.new`
# @see PecorinoLeakyBucket.new
def initialize(key:, block_for: 30, **leaky_bucket_options)
def initialize(key:, block_for: 30, **)
@key = key.to_s
@block_for = block_for.to_f
@bucket = Pecorino::LeakyBucket.new(key:, **leaky_bucket_options)
@bucket = Pecorino::LeakyBucket.new(key:, **)
end

# Tells whether the throttle will let this number of requests pass without raising
Expand Down

0 comments on commit b5414fb

Please sign in to comment.