From 40b7da8edbc6e5e27b1e9916dac17fa955461669 Mon Sep 17 00:00:00 2001 From: James Allen Date: Fri, 17 Jun 2016 14:05:54 +0100 Subject: [PATCH] Support endpoints and masterName in redis config --- services/document-updater/app/coffee/RedisBackend.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/document-updater/app/coffee/RedisBackend.coffee b/services/document-updater/app/coffee/RedisBackend.coffee index 630a780eb7..6a8e817d8c 100644 --- a/services/document-updater/app/coffee/RedisBackend.coffee +++ b/services/document-updater/app/coffee/RedisBackend.coffee @@ -113,8 +113,8 @@ module.exports = rclient = new Redis.Cluster(config.cluster) driver = "ioredis" else - {host, port, password} = config - rclient = require("redis-sharelatex").createClient({host, port, password}) + {host, port, password, endpoints, masterName} = config + rclient = require("redis-sharelatex").createClient({host, port, password, endpoints, masterName}) driver = "redis" return { rclient: rclient