lib/sidekiq/throttled/registry.rb in sidekiq-throttled-0.11.0 vs lib/sidekiq/throttled/registry.rb in sidekiq-throttled-0.12.0

- old
+ new

@@ -72,10 +72,11 @@ # @yieldparam [Strategy] strategy # @yield [strategy] Gives strategy to the block # @return [Registry] def each return to_enum(__method__) unless block_given? + @strategies.each { |*args| yield(*args) } self end # @overload each_with_static_keys() @@ -86,9 +87,10 @@ # @yieldparam [Strategy] strategy # @yield [strategy] Gives strategy to the block # @return [Registry] def each_with_static_keys return to_enum(__method__) unless block_given? + @strategies.each do |name, strategy| yield(name, strategy) unless strategy.dynamic? end end