Skip to content

Commit

Permalink
Merge pull request #41 from davidgatti/patch-1
Browse files Browse the repository at this point in the history
Removed clientUri()
  • Loading branch information
rauchg authored Jan 9, 2017
2 parents b1d5f39 + 1c297c0 commit b494b16
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function Emitter(redis, opts){
opts = opts || {};

if ('string' == typeof redis) {
redis = clientUri(redis);
redis = client(redis);
}

if (redis && !redis.hset) {
Expand Down Expand Up @@ -155,17 +155,3 @@ Emitter.prototype.emit = function(){

return this;
};

/**
* Create a redis client from a
* `host:port` uri string.
*
* @param {String} uri
* @return {Client} node client
* @api private
*/

function clientUri(uri){
uri = uri.split(':');
return client(uri[1], uri[0]);
}

0 comments on commit b494b16

Please sign in to comment.