Browse Source

Merge pull request #1650 from Shopify/seb-heartbeat-error

Return the response error in heartbeatLoop
Sébastien Lavoie 5 years ago
parent
commit
af1423ad22
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
 		}