|
@@ -42,7 +42,7 @@ type ConsumerConfig struct {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
type ConsumerEvent struct {
|
|
|
Key, Value []byte
|
|
|
Topic string
|
|
@@ -174,7 +174,7 @@ func (c *Consumer) sendError(err error) bool {
|
|
|
close(c.events)
|
|
|
close(c.done)
|
|
|
return false
|
|
|
- case c.events <- &ConsumerEvent{Err: err}:
|
|
|
+ case c.events <- &ConsumerEvent{Err: err, Topic: c.topic, Partition: c.partition}:
|
|
|
return true
|
|
|
}
|
|
|
}
|