This commit is contained in:
wangchuxiao
2023-03-09 16:36:47 +08:00
parent 6f3320ab55
commit 7f861fa5c3
9 changed files with 31 additions and 29 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ func (c *ConsumerHandler) ConsumeClaim(sess sarama.ConsumerGroupSession,
claim sarama.ConsumerGroupClaim) error {
for msg := range claim.Messages() {
log.NewDebug("", "kafka get info to mysql", "msgTopic", msg.Topic, "msgPartition", msg.Partition, "msg", string(msg.Value))
ctx := c.pushConsumerGroup.GetContextFromMsg(msg)
ctx := c.pushConsumerGroup.GetContextFromMsg(msg, "push consumer")
c.handleMs2PsChat(ctx, msg.Value)
sess.MarkMessage(msg, "")
}