Skip to content
Browse files

Use 'exports.createClient' because that's the function the user modif…

…ies to set host:port
  • Loading branch information...
1 parent f9cb4ed commit ba05fe719cd8da9b10f05dbb93ec8b2ba7ce5422 @davibe davibe committed
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/redis.js
View
3 lib/redis.js
@@ -1,4 +1,3 @@
-
/*!
* kue - RedisClient factory
* Copyright (c) 2011 LearnBoost <tj@learnboost.com>
@@ -31,7 +30,7 @@ exports.createClient = function(){
*/
exports.client = function(){
- return exports._client || (exports._client = redis.createClient());
+ return exports._client || (exports._client = exports.createClient());
};
/**

0 comments on commit ba05fe7

Please sign in to comment.
Something went wrong with that request. Please try again.