lib/sentry/rails/background_worker.rb in sentry-rails-4.8.0 vs lib/sentry/rails/background_worker.rb in sentry-rails-4.8.1
- old
+ new
@@ -1,12 +1,10 @@
module Sentry
class BackgroundWorker
- def perform(&block)
- @executor.post do
- # make sure the background worker returns AR connection if it accidentally acquire one during serialization
- ActiveRecord::Base.connection_pool.with_connection do
- block.call
- end
+ def _perform(&block)
+ # make sure the background worker returns AR connection if it accidentally acquire one during serialization
+ ActiveRecord::Base.connection_pool.with_connection do
+ block.call
end
end
end
end