Skip to content

Commit a1f128f

Browse files
committed
docs: clarify XInfoGroup.Lag field behavior
1 parent 68349f4 commit a1f128f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

command.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2104,7 +2104,9 @@ type XInfoGroup struct {
21042104
Pending int64
21052105
LastDeliveredID string
21062106
EntriesRead int64
2107-
Lag int64
2107+
// Lag represents the number of pending messages in the stream not yet
2108+
// delivered to this consumer group. Returns -1 when the lag cannot be determined.
2109+
Lag int64
21082110
}
21092111

21102112
var _ Cmder = (*XInfoGroupsCmd)(nil)

0 commit comments

Comments
 (0)