Skip to content

Commit 40eb89c

Browse files
committed
docs: clarify XInfoGroup.Lag field behavior with Nil values
1 parent fc79395 commit 40eb89c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

command.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2187,6 +2187,7 @@ func (cmd *XInfoGroupsCmd) readReply(rd *proto.Reader) error {
21872187

21882188
// lag: the number of entries in the stream that are still waiting to be delivered
21892189
// to the group's consumers, or a NULL(Nil) when that number can't be determined.
2190+
// In that case, we return -1.
21902191
if err != nil && err != Nil {
21912192
return err
21922193
} else if err == Nil {

0 commit comments

Comments
 (0)