lib/sidekiq_unique_jobs.rb in sidekiq-unique-jobs-6.0.6 vs lib/sidekiq_unique_jobs.rb in sidekiq-unique-jobs-6.0.7

- old
+ new

@@ -9,10 +9,11 @@ require 'sidekiq_unique_jobs/constants' require 'sidekiq_unique_jobs/logging' require 'sidekiq_unique_jobs/sidekiq_worker_methods' require 'sidekiq_unique_jobs/connection' require 'sidekiq_unique_jobs/exceptions' +require 'sidekiq_unique_jobs/job' require 'sidekiq_unique_jobs/util' require 'sidekiq_unique_jobs/digests' require 'sidekiq_unique_jobs/cli' require 'sidekiq_unique_jobs/core_ext' require 'sidekiq_unique_jobs/timeout' @@ -40,21 +41,20 @@ module SidekiqUniqueJobs include SidekiqUniqueJobs::Connection module_function - Concurrent::MutableStruct.new( - 'Config', + Config = Concurrent::MutableStruct.new( :default_lock_timeout, :enabled, :unique_prefix, :logger, ) # The current configuration (See: {.configure} on how to configure) def config # Arguments here need to match the definition of the new class (see above) - @config ||= Concurrent::MutableStruct::Config.new( + @config ||= Config.new( 0, true, 'uniquejobs', Sidekiq.logger, )