Преглед изворни кода

Support endpoints and masterName in redis config

James Allen пре 10 година
родитељ
комит
40b7da8edb
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      services/document-updater/app/coffee/RedisBackend.coffee

+ 2 - 2
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