lib/sidekiq_unique_jobs/server/middleware.rb in sidekiq-unique-jobs-6.0.10 vs lib/sidekiq_unique_jobs/server/middleware.rb in sidekiq-unique-jobs-6.0.11
- old
+ new
@@ -21,10 +21,10 @@
@item = item
@queue = queue
return yield if unique_disabled?
SidekiqUniqueJobs::Job.add_uniqueness(item)
- Sidekiq::Logging.with_context(logging_context(self.class, item)) do
+ SidekiqUniqueJobs.with_context(logging_context(self.class, item)) do
lock.execute do
yield
end
end
end