works with sentinal v1

This commit is contained in:
Henry Oswald 2014-09-26 17:21:33 +01:00
parent 556afc8776
commit a0bb289fd3
3 changed files with 5 additions and 8 deletions

View file

@ -1,8 +1,6 @@
Settings = require "settings-sharelatex"
redis = require('redis')
redisConf = Settings.redis?.web or {host: "localhost", port: 6379}
rclient = redis.createClient(redisConf.port, redisConf.host)
rclient.auth(redisConf.password)
redis = require("redis-sharelatex")
rclient = redis.createClient(Settings.redis.web)
module.exports = LockManager =
LOCK_TEST_INTERVAL: 50 # 50ms between each test of the lock

View file

@ -1,8 +1,6 @@
Settings = require "settings-sharelatex"
redis = require('redis')
redisConf = Settings.redis?.web or {host: "localhost", port: 6379}
rclient = redis.createClient(redisConf.port, redisConf.host)
rclient.auth(redisConf.password)
redis = require("redis-sharelatex")
rclient = redis.createClient(Settings.redis.web)
rawUpdatesKey = (doc_id) -> "UncompressedHistoryOps:#{doc_id}"
docsWithHistoryOpsKey = (project_id) -> "DocsWithHistoryOps:#{project_id}"

View file

@ -9,6 +9,7 @@
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#master",
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#master",
"request": "~2.33.0",
"redis-sharelatex": "0.0.1",
"redis": "~0.10.1"
},
"devDependencies": {