mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
works with sentinal v1
This commit is contained in:
parent
556afc8776
commit
a0bb289fd3
3 changed files with 5 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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}"
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue