3rd-Eden / node-hashring

hashring is a consistent hashing algorithm for Node.js that is compatible with libketama and python's hash_ring package
MIT License
350 stars 57 forks source link

error(Arguments list has wrong type) when call addServer #4

Closed bunnyyiu closed 11 years ago

bunnyyiu commented 12 years ago

Is it should use Array.prototype.push.call instead of Array.prototype.apply?

usage: hashring.addServer('127.0.0.1:8080');

error: node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: Function.prototype.apply: Arguments list has wrong type at Function.APPLY_PREPARE (native) at hashRing.addServer (/home/node/local/lib/node_modules/hashring/lib/hashring.js:201:24)

3rd-Eden commented 11 years ago

Fixed in master.