Skip to content

Commit

Permalink
fix: lag can be null (#2448)
Browse files Browse the repository at this point in the history
  • Loading branch information
holykol committed Feb 17, 2023
1 parent bd0d1c2 commit 3b5361d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit 3b5361d

Please sign in to comment.