lib/sidekiq-merger.rb in sidekiq-merger-0.0.7 vs lib/sidekiq-merger.rb in sidekiq-merger-0.0.8
- old
+ new
@@ -10,6 +10,9 @@
config.client_middleware do |chain|
chain.add Sidekiq::Merger::Middleware
end
end
-Sidekiq::Merger.start! if Sidekiq.server?
+if Sidekiq.server?
+ task = Sidekiq::Merger.create_task
+ task.execute
+end