Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylareopelle committed Dec 19, 2024
1 parent cc427ae commit 6e9351a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/new_relic/agent/instrumentation/resque.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@

executes do
if NewRelic::Agent.config[:'resque.use_ruby_dns'] &&
NewRelic::Agent.config[:dispatcher] == :resque &&
# resolv-replace is no longer part of the language in Ruby 3.4.
# we don't believe this lib still necessary for Ruby 3.4 users.
# however, if we receive customer feedback to the contrary, we can find
# an alternate approach.
Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.4')
NewRelic::Agent.config[:dispatcher] == :resque &&
# resolv-replace is no longer part of the language in Ruby 3.4.
# we don't believe this lib is still necessary for Ruby 3.4 users.
# however, if we receive customer feedback to the contrary, we can find
# an alternate approach.
Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.4')
NewRelic::Agent.logger.info('Requiring resolv-replace')
require 'resolv'
require 'resolv-replace'
Expand Down

0 comments on commit 6e9351a

Please sign in to comment.