diff --git a/lib/sidekiq/throttled/strategy_collection.rb b/lib/sidekiq/throttled/strategy_collection.rb index ce9d7e34..71a8afa7 100644 --- a/lib/sidekiq/throttled/strategy_collection.rb +++ b/lib/sidekiq/throttled/strategy_collection.rb @@ -26,8 +26,8 @@ def initialize(strategies, strategy:, name:, key_suffix:) # @param [#call] block # Iterates each strategy in collection - def each(&block) - @strategies.each(&block) + def each(...) + @strategies.each(...) end # @return [Boolean] whenever any strategy in collection has dynamic config @@ -37,14 +37,14 @@ def dynamic? # @return [Boolean] whenever job is throttled or not # by any strategy in collection. - def throttled?(*args) - any? { |s| s.throttled?(*args) } + def throttled?(...) + any? { |s| s.throttled?(...) } end # Marks job as being processed. # @return [void] - def finalize!(*args) - each { |c| c.finalize!(*args) } + def finalize!(...) + each { |c| c.finalize!(...) } end # Resets count of jobs of all avaliable strategies