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 61 forks source link

Fixes typo when assigning weights from object args #12

Closed pselden closed 11 years ago

pselden commented 11 years ago

It currently uses 'weigth' instead of 'weight' when reading the property from the args object so it will be undefined if your arguments look like : new HashRing({ 'servername' : { weight: 20 } });

3rd-Eden commented 11 years ago

Thanks a lot for the pull request!