From a1f128fc3dbd72c28659d265712694f7b7b0c350 Mon Sep 17 00:00:00 2001 From: ofekshenawa Date: Wed, 21 May 2025 10:12:04 +0300 Subject: [PATCH] docs: clarify XInfoGroup.Lag field behavior --- command.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/command.go b/command.go index c39b2c19..5fa347f4 100644 --- a/command.go +++ b/command.go @@ -2104,7 +2104,9 @@ type XInfoGroup struct { Pending int64 LastDeliveredID string EntriesRead int64 - Lag int64 + // Lag represents the number of pending messages in the stream not yet + // delivered to this consumer group. Returns -1 when the lag cannot be determined. + Lag int64 } var _ Cmder = (*XInfoGroupsCmd)(nil)