fix: lag can be null (#2448)

see 383d902ce6/src/t_stream.c (L1456)
This commit is contained in:
Timofey 2023-02-17 16:05:44 +03:00 committed by GitHub
parent bd0d1c2293
commit 3b5361dc10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2057,7 +2057,7 @@ func (cmd *XInfoGroupsCmd) readReply(rd *proto.Reader) error {
}
case "lag":
group.Lag, err = rd.ReadInt()
if err != nil {
if err != nil && err != Nil {
return err
}
default:
@ -2367,7 +2367,7 @@ func readStreamGroups(rd *proto.Reader) ([]XInfoStreamGroup, error) {
}
case "lag":
group.Lag, err = rd.ReadInt()
if err != nil {
if err != nil && err != Nil {
return nil, err
}
case "pel-count":