fix: ignore Nil error when reading EntriesRead

This commit is contained in:
youseebiggirl 2022-06-25 20:11:46 +08:00 committed by GitHub
parent a40b4f0f69
commit 89d6dfe09a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2047,7 +2047,7 @@ func (cmd *XInfoGroupsCmd) readReply(rd *proto.Reader) error {
}
case "entries-read":
group.EntriesRead, err = rd.ReadInt()
if err != nil {
if err != nil && err != Nil {
return err
}
case "lag":