优化配置

This commit is contained in:
qiyunfanbo126.com 2025-01-17 21:01:08 +08:00
parent 4205453007
commit 3aa086f9bb
2 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,8 @@ func (t *TcpHelper) Init(port string) *TcpHelper {
if err == nil {
t.client = conn
t.watch(t.client)
} else {
utils.Log(nil, config.GetConf().Url+":"+port)
}
})
return t

View File

@ -51,6 +51,7 @@ func (kk KafkaV2Mq) Consume(name string, hand interface{}, ci int) {
"max.poll.interval.ms": 300000, // 5 分钟, 防止积压的时候认为掉线了
"enable.auto.commit": false,
}
utils.Log(nil, "kafka config", kfconfig)
var start = time.Now()
var end time.Time
consumer, err := kafka.NewConsumer(kfconfig)