MCPcopy
hub / github.com/IBM/sarama / sendError

Method sendError

consumer.go:462–474  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

460const stuckRetryThreshold = 10
461
462func (child *partitionConsumer) sendError(err error) {
463 cErr := &ConsumerError{
464 Topic: child.topic,
465 Partition: child.partition,
466 Err: err,
467 }
468
469 if child.conf.Consumer.Return.Errors {
470 child.errors <- cErr
471 } else {
472 Logger.Println(cErr)
473 }
474}
475
476// notifyError delivers an abort error and queues a redispatch unless shutdown
477// is already in progress

Callers 3

dispatcherMethod · 0.95
parseResponseMethod · 0.95
handleResponsesMethod · 0.80

Calls 1

PrintlnMethod · 0.65

Tested by

no test coverage detected