Sfoglia il codice sorgente

Return the response error in heartbeatLoop

`err` is always `nil`, it is checked above already.
Sebastien Lavoie 5 anni fa
parent
commit
a74c07e4d6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
 		}