redis-clustr
Advanced tools
Comparing version 0.0.4 to 0.0.5
13
index.js
@@ -80,5 +80,4 @@ var setupCommands = require('./src/setupCommands'); | ||
var todo = Object.keys(g).length; | ||
var done = 0; | ||
var isDone = function() { | ||
if (++done === todo) cb(); | ||
if (!--todo) cb(); | ||
}; | ||
@@ -111,1 +110,11 @@ | ||
}; | ||
RedisClustr.prototype.quit = function(cb) { | ||
var todo = Object.keys(this.clients).length; | ||
for (var i in this.clients) { | ||
this.clients[i].client.quit(function() { | ||
if (!--todo) cb(); | ||
}); | ||
} | ||
}; |
{ | ||
"name": "redis-clustr", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A poor man's redis cluster client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -67,1 +67,5 @@ // not really tests but being used to ensure things are working | ||
}); | ||
c.quit(function() { | ||
console.log('QUIT'); | ||
}); |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
11626
9
402
0
81