ref[provider]: refactor consistent hash load balancing

This commit is contained in:
godotg committed 2024-01-20 17:40:12 +08:00
1 parent 471f0611e7
commit d5249ed904
5 files changed
+41 -61

No files matched your search

@@ -53,6 +53,10 @@ public class HashSetLong extends AbstractSet<Long> {
return map.containsKey(o);
}
public boolean contains(long key) {
return map.containsKey(key);
}
@Override
public boolean add(Long e) {
return map.put(e, Boolean.TRUE) == null;