mark message

pull/455/head
Gordon 2 years ago committed by Xinwei Xiong(cubxxw-openim)
parent ae2342353f
commit 4e5d180bfa

@ -59,6 +59,7 @@ func (ms *PushConsumerHandler) ConsumeClaim(sess sarama.ConsumerGroupSession,
for msg := range claim.Messages() {
log.InfoByKv("kafka get info to mysql", "", "msgTopic", msg.Topic, "msgPartition", msg.Partition, "msg", string(msg.Value))
ms.msgHandle[msg.Topic](msg.Value)
sess.MarkMessage(msg, "")
}
return nil
}

Loading…
Cancel
Save