Browse Source

Return the response error in heartbeatLoop

`err` is always `nil`, it is checked above already.
Sebastien Lavoie 5 years ago
parent
commit
a74c07e4d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      consumer_group.go

+ 1 - 1
consumer_group.go

@@ -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
 		}