mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-06 09:17:10 +08:00
add some unittests and bug fix
This commit is contained in:
@@ -116,6 +116,6 @@ func MakeRouter() map[string]CmdFunc {
|
||||
// relay command to responsible peer, and return its reply to client
|
||||
func defaultFunc(cluster *Cluster, c redis.Connection, args [][]byte) redis.Reply {
|
||||
key := string(args[1])
|
||||
peer := cluster.peerPicker.Get(key)
|
||||
peer := cluster.peerPicker.PickNode(key)
|
||||
return cluster.Relay(peer, c, args)
|
||||
}
|
||||
|
Reference in New Issue
Block a user