增加重连
This commit is contained in:
parent
46adc9c617
commit
aa0864b3b5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue