Skip to content

Commit

Permalink
fix: asking should send right before multi (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyxloading authored Dec 19, 2024
1 parent 8aa9298 commit 9ff4c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ func askingMultiCache(cc conn, ctx context.Context, multi []CacheableTTL) *redis
commands := make([]Completed, 0, len(multi)*6)
for _, cmd := range multi {
ck, _ := cmds.CacheKey(cmd.Cmd)
commands = append(commands, cmds.OptInCmd, cmds.MultiCmd, cmds.AskingCmd, cmds.NewCompleted([]string{"PTTL", ck}), Completed(cmd.Cmd), cmds.ExecCmd)
commands = append(commands, cmds.OptInCmd, cmds.AskingCmd, cmds.MultiCmd, cmds.NewCompleted([]string{"PTTL", ck}), Completed(cmd.Cmd), cmds.ExecCmd)
}
results := resultsp.Get(0, len(multi))
resps := cc.DoMulti(ctx, commands...)
Expand Down

0 comments on commit 9ff4c60

Please sign in to comment.