(err error)
| 460 | const stuckRetryThreshold = 10 |
| 461 | |
| 462 | func (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 |
no test coverage detected