Skip to content

Commit

Permalink
Add comment for XReadGroupArgs to note the inconsistency of the defau…
Browse files Browse the repository at this point in the history
…lt behavior between Redis & go-redis
  • Loading branch information
tzq0301 authored Dec 27, 2023
1 parent 73c879d commit fbc8985
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stream_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ func (c cmdable) XGroupDelConsumer(ctx context.Context, stream, group, consumer
type XReadGroupArgs struct {
Group string
Consumer string
Streams []string // list of streams and ids, e.g. stream1 stream2 id1 id2
Streams []string // list of streams and ids, e.g. stream1 stream2 id1 id2
Count int64
Block time.Duration
Block time.Duration // [Block 0] by default (if no value set), or set a negative value (like -time.Millisecond) to make it non-blocking
NoAck bool
}

Expand Down

0 comments on commit fbc8985

Please sign in to comment.