Skip to content

Commit

Permalink
Use 'exports.createClient' because that's the function the user modif…
Browse files Browse the repository at this point in the history
…ies to set host:port
  • Loading branch information
davibe committed Nov 1, 2011
1 parent f9cb4ed commit ba05fe7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/redis.js
@@ -1,4 +1,3 @@

/*!
* kue - RedisClient factory
* Copyright (c) 2011 LearnBoost <tj@learnboost.com>
Expand Down Expand Up @@ -31,7 +30,7 @@ exports.createClient = function(){
*/

exports.client = function(){
return exports._client || (exports._client = redis.createClient());
return exports._client || (exports._client = exports.createClient());
};

/**
Expand Down

0 comments on commit ba05fe7

Please sign in to comment.