lib/sidekiq/throttled/strategy_collection.rb in sidekiq-throttled-1.2.0 vs lib/sidekiq/throttled/strategy_collection.rb in sidekiq-throttled-1.3.0

- old
+ new

@@ -24,28 +24,28 @@ end end # @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 def dynamic? any?(&:dynamic?) end # @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 # @return [void] def reset!