mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-13 22:49:51 -04:00
Initialize value of this.redisNotAvailable
This commit is contained in:
parent
d821e459d1
commit
c717e609ea
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ class LockManager
|
|||
constructor: ->
|
||||
unless config.isProduction or config.redis.host isnt "localhost"
|
||||
throw "You shouldn't be instantiating distributed locks unless in production."
|
||||
@redisNotAvailable = true
|
||||
@redisClient = redis.createClient config.redis.port, config.redis.host
|
||||
@redisClient.on "ready", =>
|
||||
log.info "Redis ready!"
|
||||
|
|
Loading…
Reference in a new issue