mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Fix redis cluster health check
This commit is contained in:
parent
1c88fc60e7
commit
92f22bc1a1
2 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
_ = require("underscore")
|
||||
async = require "async"
|
||||
|
||||
module.exports = RedisSharelatex =
|
||||
createClient: (opts = {port: 6379, host: "localhost"})->
|
||||
|
@ -35,7 +36,7 @@ module.exports = RedisSharelatex =
|
|||
|
||||
clusterHealthCheckBuilder: (client) ->
|
||||
healthCheck = (callback) ->
|
||||
jobs = client.rclient.nodes("all").map (node) =>
|
||||
jobs = client.nodes("all").map (node) =>
|
||||
(cb) => RedisSharelatex._checkClient(node, cb)
|
||||
async.parallel jobs, callback
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"author": "ShareLaTeX",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"async": "^2.4.0",
|
||||
"chai": "1.9.1",
|
||||
"coffee-script": "1.8.0",
|
||||
"grunt": "0.4.5",
|
||||
|
|
Loading…
Reference in a new issue