lib/new_relic/agent/harvester.rb in newrelic_rpm-8.2.0 vs lib/new_relic/agent/harvester.rb in newrelic_rpm-8.3.0

- old
+ new

@@ -3,15 +3,14 @@ # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. module NewRelic module Agent class Harvester - attr_accessor :starting_pid # Inject target for after_fork call to avoid spawning thread in tests - def initialize(events, after_forker=NewRelic::Agent) + def initialize(events, after_forker = NewRelic::Agent) # We intentionally don't set our pid as started at this point. # Startup routines must call mark_started when they consider us set! @starting_pid = nil @after_forker = after_forker @@ -20,11 +19,11 @@ end end def on_transaction(*_) return unless restart_in_children_enabled? && - needs_restart? && - harvest_thread_enabled? + needs_restart? && + harvest_thread_enabled? restart_harvest_thread end def mark_started(pid = Process.pid)