lib/ddtrace/contrib/registry.rb in ddtrace-0.45.0 vs lib/ddtrace/contrib/registry.rb in ddtrace-0.46.0

- old
+ new

@@ -15,12 +15,12 @@ @mutex.synchronize do @data[name] = Entry.new(name, klass, auto_patch).freeze end end - def each + def each(&block) @mutex.synchronize do - @data.each { |_, entry| yield(entry) } + @data.each_value(&block) end end def [](name) @mutex.synchronize do