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

Issue with setting replicas to 0 #17

Closed draco2003 closed 10 years ago

draco2003 commented 10 years ago

If you set replicas to 0 to utilize the hashring without redundancy, it defaults the replicas back to 4.

example : console.log(0|| 4); // prints 4

https://github.com/3rd-Eden/node-hashring/blob/master/index.js#L53

draco2003 commented 10 years ago

should be 1 i believe so non-issue.