mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 22:13:32 -04:00
Remove testing conditions
This commit is contained in:
parent
c717e609ea
commit
2a865a0ca0
2 changed files with 2 additions and 2 deletions
server
|
@ -4,7 +4,7 @@ log = require 'winston'
|
|||
|
||||
class LockManager
|
||||
constructor: ->
|
||||
unless config.isProduction or config.redis.host isnt "localhost"
|
||||
unless config.isProduction
|
||||
throw "You shouldn't be instantiating distributed locks unless in production."
|
||||
@redisNotAvailable = true
|
||||
@redisClient = redis.createClient config.redis.port, config.redis.host
|
||||
|
|
|
@ -8,7 +8,7 @@ LevelSession = require '../levels/sessions/LevelSession'
|
|||
Level = require '../levels/Level'
|
||||
log = require 'winston'
|
||||
sendwithus = require '../sendwithus'
|
||||
if config.isProduction or config.redis.host isnt "localhost" #TODO: Ask Nick and Scott to change their environment variables and change the deploy ones
|
||||
if config.isProduction
|
||||
lockManager = require '../commons/LockManager'
|
||||
|
||||
module.exports.setup = (app) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue