broker/segmentio: fix kafka topic in publication
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
dd94415716
commit
62d02b4297
@ -324,7 +324,7 @@ func (h *cgHandler) run(ctx context.Context) {
|
|||||||
var m broker.Message
|
var m broker.Message
|
||||||
eh := h.brokerOpts.ErrorHandler
|
eh := h.brokerOpts.ErrorHandler
|
||||||
offsets[msg.Topic][msg.Partition] = msg.Offset
|
offsets[msg.Topic][msg.Partition] = msg.Offset
|
||||||
p := &publication{generation: h.generation, m: &m, offsets: offsets}
|
p := &publication{topic: msg.Topic, generation: h.generation, m: &m, offsets: offsets}
|
||||||
|
|
||||||
if err := h.brokerOpts.Codec.Unmarshal(msg.Value, &m); err != nil {
|
if err := h.brokerOpts.Codec.Unmarshal(msg.Value, &m); err != nil {
|
||||||
p.err = err
|
p.err = err
|
||||||
|
Loading…
Reference in New Issue
Block a user