DEV: Prevent warning about already initialized constant

This commit is contained in:
Gerhard Schlager 2019-02-25 17:34:58 +01:00
parent be436066ff
commit ff26b4ed9b

View File

@ -1,6 +1,6 @@
# Cross-process locking using Redis.
class DistributedMutex
DEFAULT_VALIDITY = 60
DEFAULT_VALIDITY ||= 60
def self.synchronize(key, redis: nil, validity: DEFAULT_VALIDITY, &blk)
self.new(