diff --git a/dubbo-cluster/src/main/java/com/alibaba/dubbo/rpc/cluster/loadbalance/ConsistentHashLoadBalance.java b/dubbo-cluster/src/main/java/com/alibaba/dubbo/rpc/cluster/loadbalance/ConsistentHashLoadBalance.java index 30512f90bf1..dc6ef0ab4a9 100644 --- a/dubbo-cluster/src/main/java/com/alibaba/dubbo/rpc/cluster/loadbalance/ConsistentHashLoadBalance.java +++ b/dubbo-cluster/src/main/java/com/alibaba/dubbo/rpc/cluster/loadbalance/ConsistentHashLoadBalance.java @@ -89,7 +89,7 @@ public int getIdentityHashCode() { public Invoker select(Invocation invocation) { String key = toKey(invocation.getArguments()); byte[] digest = md5(key); - Invoker invoker = sekectForKey(hash(digest, 0)); + Invoker invoker = selectForKey(hash(digest, 0)); return invoker; } @@ -103,7 +103,7 @@ private String toKey(Object[] args) { return buf.toString(); } - private Invoker sekectForKey(long hash) { + private Invoker selectForKey(long hash) { Invoker invoker; Long key = hash; if (!virtualInvokers.containsKey(key)) {