Skip to content

Commit 19cb1ef

Browse files
committed
Wrap in executor
1 parent a1391c9 commit 19cb1ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_insights/engine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def self.importmap
4242
!ActiveInsights.enabled?
4343

4444
Thread.new do
45-
ActiveRecord::Base.connection_pool.with_connection do
45+
Rails.application.executor.wrap do
4646
ActiveInsights::Request.
4747
setup(started, finished, unique_id, payload)
4848
end

0 commit comments

Comments
 (0)