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"
|
Settings = require "settings-sharelatex"
|
||||||
redis = require('redis')
|
redis = require("redis-sharelatex")
|
||||||
redisConf = Settings.redis?.web or {host: "localhost", port: 6379}
|
rclient = redis.createClient(Settings.redis.web)
|
||||||
rclient = redis.createClient(redisConf.port, redisConf.host)
|
|
||||||
rclient.auth(redisConf.password)
|
|
||||||
|
|
||||||
module.exports = LockManager =
|
module.exports = LockManager =
|
||||||
LOCK_TEST_INTERVAL: 50 # 50ms between each test of the lock
|
LOCK_TEST_INTERVAL: 50 # 50ms between each test of the lock
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
Settings = require "settings-sharelatex"
|
Settings = require "settings-sharelatex"
|
||||||
redis = require('redis')
|
redis = require("redis-sharelatex")
|
||||||
redisConf = Settings.redis?.web or {host: "localhost", port: 6379}
|
rclient = redis.createClient(Settings.redis.web)
|
||||||
rclient = redis.createClient(redisConf.port, redisConf.host)
|
|
||||||
rclient.auth(redisConf.password)
|
|
||||||
|
|
||||||
rawUpdatesKey = (doc_id) -> "UncompressedHistoryOps:#{doc_id}"
|
rawUpdatesKey = (doc_id) -> "UncompressedHistoryOps:#{doc_id}"
|
||||||
docsWithHistoryOpsKey = (project_id) -> "DocsWithHistoryOps:#{project_id}"
|
docsWithHistoryOpsKey = (project_id) -> "DocsWithHistoryOps:#{project_id}"
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#master",
|
"logger-sharelatex": "git+https://github.com/sharelatex/logger-sharelatex.git#master",
|
||||||
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#master",
|
"metrics-sharelatex": "git+https://github.com/sharelatex/metrics-sharelatex.git#master",
|
||||||
"request": "~2.33.0",
|
"request": "~2.33.0",
|
||||||
|
"redis-sharelatex": "0.0.1",
|
||||||
"redis": "~0.10.1"
|
"redis": "~0.10.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
Loading…
Reference in a new issue