diff --git a/internal/consistent/consistent.go b/internal/consistent/consistent.go index 5dbe9c5..3c40017 100644 --- a/internal/consistent/consistent.go +++ b/internal/consistent/consistent.go @@ -267,7 +267,7 @@ func (c *Consistent[M]) hashKeyFnv(key string) uint32 { func (c *Consistent[M]) updateSortedHashes() { hashes := c.sortedHashes[:0] //reallocate if we're holding on to too much (1/4th) - if cap(c.sortedHashes)/(c.NumberOfReplicas*4) > len(c.circle) { + if cap(c.sortedHashes)/(c.NumberOfReplicas*4) > len(c.members) { hashes = nil } for k := range c.circle {