Skip to content

Commit

Permalink
Merge pull request #2888 from newrelic/lions_mane_coffee_benefits_rea…
Browse files Browse the repository at this point in the history
…l_or_imagined

Sequel: relax Ruby requirement for Timed pool
  • Loading branch information
fallwith authored Oct 3, 2024
2 parents a49c2d1 + 2f8d3c6 commit 4bc15dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sequel/extensions/new_relic_instrumentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def notice_sql(sql)

THREAD_SAFE_CONNECTION_POOL_CLASSES = [
(defined?(::Sequel::ThreadedConnectionPool) && ::Sequel::ThreadedConnectionPool),
(defined?(::Sequel::TimedQueueConnectionPool) && RUBY_VERSION >= '3.4' && ::Sequel::TimedQueueConnectionPool)
(defined?(::Sequel::TimedQueueConnectionPool) && RUBY_VERSION >= '3.2' && ::Sequel::TimedQueueConnectionPool)
].compact.freeze

def explainer_for(sql)
Expand Down

0 comments on commit 4bc15dd

Please sign in to comment.