I've been testing this library as a possible solution and came across this curious behavior. I have a Consistent object with 3 members, and then .Remove()'d one of them, and started getting ErrInsufficientMemberCount, which surprised me.
I see in the code you check against len(c.members)-1, is this a typo or or there some reason why all the members shouldn't be returned?
I've been testing this library as a possible solution and came across this curious behavior. I have a
Consistent
object with 3 members, and then.Remove()
'd one of them, and started gettingErrInsufficientMemberCount
, which surprised me.I see in the code you check against
len(c.members)-1
, is this a typo or or there some reason why all the members shouldn't be returned?https://github.com/buraksezer/consistent/blob/master/consistent.go#L308