Skip to content

Commit 08dad1e

Browse files
committed
Add hint on Streams usage
1 parent 13b6cb3 commit 08dad1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commands.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,7 @@ func (c cmdable) XRevRangeN(stream, start, stop string, count int64) *XMessageSl
14051405
}
14061406

14071407
type XReadArgs struct {
1408-
Streams []string
1408+
Streams []string // list of streams and ids, e.g. stream1 stream2 id1 id2
14091409
Count int64
14101410
Block time.Duration
14111411
}
@@ -1421,6 +1421,7 @@ func (c cmdable) XRead(a *XReadArgs) *XStreamSliceCmd {
14211421
args = append(args, "block")
14221422
args = append(args, int64(a.Block/time.Millisecond))
14231423
}
1424+
14241425
args = append(args, "streams")
14251426
for _, s := range a.Streams {
14261427
args = append(args, s)

0 commit comments

Comments
 (0)