lib/sidekiq/lock.rb in sidekiq-lock-0.3.0 vs lib/sidekiq/lock.rb in sidekiq-lock-0.3.1

- old
+ new

@@ -1,14 +1,13 @@ -require "sidekiq/lock/middleware" -require "sidekiq/lock/redis_lock" -require "sidekiq/lock/version" -require "sidekiq/lock/worker" +require 'sidekiq/lock/middleware' +require 'sidekiq/lock/redis_lock' +require 'sidekiq/lock/version' +require 'sidekiq/lock/worker' module Sidekiq - def self.lock_method - @lock_method || :lock + @lock_method ||= :lock end def self.lock_method=(method) @lock_method = method end @@ -21,6 +20,5 @@ Sidekiq.configure_server do |config| config.server_middleware do |chain| chain.add Sidekiq::Lock::Middleware end end -