Skip to content

Commit

Permalink
Merge pull request Automattic#82 from davibe/patch-1
Browse files Browse the repository at this point in the history
Use 'exports.createClient' because that's the function the user modifies
  • Loading branch information
tj committed Nov 1, 2011
2 parents f9cb4ed + ba05fe7 commit f6ae6dc
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 * kue - RedisClient factory
* Copyright (c) 2011 LearnBoost <tj@learnboost.com> * Copyright (c) 2011 LearnBoost <tj@learnboost.com>
Expand Down Expand Up @@ -31,7 +30,7 @@ exports.createClient = function(){
*/ */


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


/** /**
Expand Down

0 comments on commit f6ae6dc

Please sign in to comment.