lib/new_relic/agent/configuration/manager.rb in newrelic_rpm-8.10.1 vs lib/new_relic/agent/configuration/manager.rb in newrelic_rpm-8.11.0
- old
+ new
@@ -1,6 +1,5 @@
-# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
# frozen_string_literal: true
require 'forwardable'
@@ -154,10 +153,10 @@
::NewRelic::Agent::Configuration::DefaultSource.transform_for(key)
end
def register_callback(key, &proc)
@callbacks[key] << proc
- proc.call(@cache[key])
+ yield(@cache[key])
end
def invoke_callbacks(direction, source)
return unless source
source.keys.each do |key|