lib/sidekiq/monitor/server/middleware.rb in sidekiq_monitor-0.1.3 vs lib/sidekiq/monitor/server/middleware.rb in sidekiq_monitor-0.1.4
- old
+ new
@@ -4,10 +4,10 @@
class Middleware
def initialize(options=nil)
@processor = Monitor::Processor.new
end
- def call(worker, msg, queue)
+ def call(worker, msg, queue, redis_pool=nil)
ActiveRecord::Base.connection_pool.with_connection do
@processor.start(worker, msg, queue)
begin
return_value = yield
rescue Exception => exception