Skip to content

Commit fca5225

Browse files
SoulPancakerueian
andauthored
Update helper.go
Co-authored-by: Rueian <[email protected]>
1 parent 58b3a03 commit fca5225

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

helper.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@ func clusterMGet(client Client, ctx context.Context, keys []string) (ret map[str
278278
}
279279

280280
slotIdx := make(map[uint16]int, len(keys)/2)
281-
var builders []any
281+
cmds := mgetcmdsp.Get(0, len(keys))
282+
defer mgetcmdsp.Put(cmds)
282283
for _, key := range keys {
283284
s := slot(key)
284285
idx, ok := slotIdx[s]

0 commit comments

Comments
 (0)