Skip to content

Commit 12ed59e

Browse files
committed
utils: fix bug in sendCommand
slice of interface{} is required, not []interface{}
1 parent 6beb7a1 commit 12ed59e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/utils.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ func restoreRdbEntry(c redigo.Conn, e *rdb.BinEntry, codis bool) {
280280
args = append(args, list[0])
281281
list = list[1:]
282282
}
283-
sendCommand(args)
283+
sendCommand(args...)
284284
}
285285
case rdb.Hash:
286286
sendCommand("DEL", o.Key)
@@ -293,7 +293,7 @@ func restoreRdbEntry(c redigo.Conn, e *rdb.BinEntry, codis bool) {
293293
args = append(args, hash[0].Field, hash[0].Value)
294294
hash = hash[1:]
295295
}
296-
sendCommand(args)
296+
sendCommand(args...)
297297
}
298298
case rdb.ZSet:
299299
sendCommand("DEL", o.Key)
@@ -306,7 +306,7 @@ func restoreRdbEntry(c redigo.Conn, e *rdb.BinEntry, codis bool) {
306306
args = append(args, zset[0].Score, zset[0].Member)
307307
zset = zset[1:]
308308
}
309-
sendCommand(args)
309+
sendCommand(args...)
310310
}
311311
case rdb.Set:
312312
sendCommand("DEL", o.Key)
@@ -319,7 +319,7 @@ func restoreRdbEntry(c redigo.Conn, e *rdb.BinEntry, codis bool) {
319319
args = append(args, dict[0])
320320
dict = dict[1:]
321321
}
322-
sendCommand(args)
322+
sendCommand(args...)
323323
}
324324
}
325325
if ttlms != 0 {

0 commit comments

Comments
 (0)