Merge pull request #913 from coralproject/redis-fix

Fixed Redis Connection Error
This commit is contained in:
Kim Gardner
2017-09-01 15:53:10 +01:00
committed by GitHub
+1 -2
View File
@@ -30,7 +30,6 @@ const attachMonitors = (client) => {
};
const connectionOptions = {
url: REDIS_URL,
retry_strategy: function(options) {
if (options.error && options.error.code !== 'ECONNREFUSED') {
@@ -65,7 +64,7 @@ const connectionOptions = {
};
const createClient = () => {
let client = new Redis(connectionOptions);
let client = new Redis(REDIS_URL, connectionOptions);
// Attach the monitors that will print debug messages to the console.
attachMonitors(client);