Skip to content

Commit 9ff4c60

Browse files
authored
fix: asking should send right before multi (#704)
1 parent 8aa9298 commit 9ff4c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ func askingMultiCache(cc conn, ctx context.Context, multi []CacheableTTL) *redis
831831
commands := make([]Completed, 0, len(multi)*6)
832832
for _, cmd := range multi {
833833
ck, _ := cmds.CacheKey(cmd.Cmd)
834-
commands = append(commands, cmds.OptInCmd, cmds.MultiCmd, cmds.AskingCmd, cmds.NewCompleted([]string{"PTTL", ck}), Completed(cmd.Cmd), cmds.ExecCmd)
834+
commands = append(commands, cmds.OptInCmd, cmds.AskingCmd, cmds.MultiCmd, cmds.NewCompleted([]string{"PTTL", ck}), Completed(cmd.Cmd), cmds.ExecCmd)
835835
}
836836
results := resultsp.Get(0, len(multi))
837837
resps := cc.DoMulti(ctx, commands...)

0 commit comments

Comments
 (0)