Skip to content
Snippets Groups Projects
Commit ab7b642d authored by aliiohs's avatar aliiohs
Browse files

replace Uint32Slice

parent 29645fe9
No related branches found
No related tags found
No related merge requests found
...@@ -128,7 +128,7 @@ func newConsistentHashSelector(invokers []protocol.Invoker, methodName string, ...@@ -128,7 +128,7 @@ func newConsistentHashSelector(invokers []protocol.Invoker, methodName string,
return selector return selector
} }
// Select Gets invoker based on load balancing strategy // Select gets invoker based on load balancing strategy
func (c *ConsistentHashSelector) Select(invocation protocol.Invocation) protocol.Invoker { func (c *ConsistentHashSelector) Select(invocation protocol.Invocation) protocol.Invoker {
key := c.toKey(invocation.Arguments()) key := c.toKey(invocation.Arguments())
digest := md5.Sum([]byte(key)) digest := md5.Sum([]byte(key))
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment