DEV: Prevent warning about already initialized constant
This commit is contained in:
parent
be436066ff
commit
ff26b4ed9b
|
@ -1,6 +1,6 @@
|
||||||
# Cross-process locking using Redis.
|
# Cross-process locking using Redis.
|
||||||
class DistributedMutex
|
class DistributedMutex
|
||||||
DEFAULT_VALIDITY = 60
|
DEFAULT_VALIDITY ||= 60
|
||||||
|
|
||||||
def self.synchronize(key, redis: nil, validity: DEFAULT_VALIDITY, &blk)
|
def self.synchronize(key, redis: nil, validity: DEFAULT_VALIDITY, &blk)
|
||||||
self.new(
|
self.new(
|
||||||
|
|
Loading…
Reference in New Issue