Skip to content

Commit bf30bd7

Browse files
committed
update
Signed-off-by: Xiaolong Chen <[email protected]>
1 parent 5d13acf commit bf30bd7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

vectorset_commands.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,12 +348,10 @@ func (c cmdable) VSimWithArgsWithScores(ctx context.Context, key string, val Vec
348348
}
349349

350350
// `VRANGE key start end count`
351+
// a negative count means to return all the elements in the vector set.
351352
// note: the API is experimental and may be subject to change.
352353
func (c cmdable) VRange(ctx context.Context, key, start, end string, count int64) *StringSliceCmd {
353-
args := []any{"vrange", key, start, end}
354-
if count != 0 {
355-
args = append(args, count)
356-
}
354+
args := []any{"vrange", key, start, end, count}
357355
cmd := NewStringSliceCmd(ctx, args...)
358356
_ = c(ctx, cmd)
359357
return cmd

0 commit comments

Comments
 (0)