1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-23 21:01:00 +03:00

docs: clarify XInfoGroup.Lag field behavior with Nil values

This commit is contained in:
ofekshenawa
2025-05-13 15:36:43 +03:00
parent fc7939534f
commit 40eb89cbde

View File

@ -2187,6 +2187,7 @@ func (cmd *XInfoGroupsCmd) readReply(rd *proto.Reader) error {
// lag: the number of entries in the stream that are still waiting to be delivered
// to the group's consumers, or a NULL(Nil) when that number can't be determined.
// In that case, we return -1.
if err != nil && err != Nil {
return err
} else if err == Nil {