mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:15:05 +08:00
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.
|
||||
class DistributedMutex
|
||||
DEFAULT_VALIDITY = 60
|
||||
DEFAULT_VALIDITY ||= 60
|
||||
|
||||
def self.synchronize(key, redis: nil, validity: DEFAULT_VALIDITY, &blk)
|
||||
self.new(
|
||||
|
|
Loading…
Reference in New Issue
Block a user