Explorar o código

Return the response error in heartbeatLoop

`err` is always `nil`, it is checked above already.
Sebastien Lavoie %!s(int64=5) %!d(string=hai) anos
pai
achega
a74c07e4d6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 		}