Fix redis cluster health check

This commit is contained in:
James Allen 2017-05-04 15:38:07 +01:00
parent 1c88fc60e7
commit 92f22bc1a1
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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",