|
@@ -61,9 +61,9 @@ func (c *MessageConsumer) ConsumeClaim(groupSession sarama.ConsumerGroupSession, |
|
@@ -61,9 +61,9 @@ func (c *MessageConsumer) ConsumeClaim(groupSession sarama.ConsumerGroupSession, |
61
|
}
|
61
|
}
|
62
|
if err = topicHandle(message); err != nil {
|
62
|
if err = topicHandle(message); err != nil {
|
63
|
logs.Error("Message claimed: kafka消息处理错误 topic =", message.Topic, message.Offset, err)
|
63
|
logs.Error("Message claimed: kafka消息处理错误 topic =", message.Topic, message.Offset, err)
|
64
|
- }
|
64
|
+ } else {
|
65
|
groupSession.MarkMessage(message, "")
|
65
|
groupSession.MarkMessage(message, "")
|
66
|
-
|
66
|
+ }
|
67
|
}
|
67
|
}
|
68
|
return nil
|
68
|
return nil
|
69
|
}
|
69
|
}
|