增加重连

This commit is contained in:
qiyunfanbo126.com 2025-01-23 16:52:33 +08:00
parent 46adc9c617
commit aa0864b3b5
1 changed files with 0 additions and 2 deletions

View File

@ -103,8 +103,6 @@ func (kk KafkaV2Mq) Consume(name string, hand interface{}, ci int) {
} else {
//utils.Log(nil, "对列放开")
}
time.Sleep(3 * time.Minute)
msg, err := consumer.ReadMessage(1 * time.Second)
if err == nil {
utils.Log(nil, "offset", msg.TopicPartition.Offset)