Skip to content

Commit

Permalink
Return the response error in heartbeatLoop
Browse files Browse the repository at this point in the history
`err` is always `nil`, it is checked above already.
  • Loading branch information
lavoiesl committed Mar 23, 2020
1 parent 18d3a27 commit a74c07e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consumer_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ func (s *consumerGroupSession) heartbeatLoop() {
case ErrRebalanceInProgress, ErrUnknownMemberId, ErrIllegalGeneration:
return
default:
s.parent.handleError(err, "", -1)
s.parent.handleError(resp.Err, "", -1)
return
}

Expand Down

0 comments on commit a74c07e

Please sign in to comment.