redis-clustr
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -26,3 +26,3 @@ var setupCommands = require('./src/setupCommands'); | ||
if (!slots) { | ||
slots = [ i * 65536 / config.clients.length, (i + 1) * 65536 / config.clients.length - 1] | ||
slots = [ i * 65536 / config.clients.length, (i + 1) * 65536 / config.clients.length ] | ||
} | ||
@@ -46,3 +46,3 @@ | ||
for (var i in this.clients) { | ||
if (slot >= this.clients[i].slots[0] && slot <= this.clients[i].slots[1]) { | ||
if (slot >= this.clients[i].slots[0] && slot < this.clients[i].slots[1]) { | ||
return this.clients[i]; | ||
@@ -49,0 +49,0 @@ } |
{ | ||
"name": "redis-clustr", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A poor man's redis cluster client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14961