mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-30 07:53:45 -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
|
class LockManager
|
||||||
constructor: ->
|
constructor: ->
|
||||||
unless config.isProduction or config.redis.host isnt "localhost"
|
unless config.isProduction
|
||||||
throw "You shouldn't be instantiating distributed locks unless in production."
|
throw "You shouldn't be instantiating distributed locks unless in production."
|
||||||
@redisNotAvailable = true
|
@redisNotAvailable = true
|
||||||
@redisClient = redis.createClient config.redis.port, config.redis.host
|
@redisClient = redis.createClient config.redis.port, config.redis.host
|
||||||
|
|
|
@ -8,7 +8,7 @@ LevelSession = require '../levels/sessions/LevelSession'
|
||||||
Level = require '../levels/Level'
|
Level = require '../levels/Level'
|
||||||
log = require 'winston'
|
log = require 'winston'
|
||||||
sendwithus = require '../sendwithus'
|
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'
|
lockManager = require '../commons/LockManager'
|
||||||
|
|
||||||
module.exports.setup = (app) ->
|
module.exports.setup = (app) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue