正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
@@ -118,6 +118,7 @@ func (r *Runer) InitConsumer() error { | @@ -118,6 +118,7 @@ func (r *Runer) InitConsumer() error { | ||
118 | // khosts := []string{"192.168.0.252:9092", "192.168.0.251:9092", "192.168.0.250:9092"} | 118 | // khosts := []string{"192.168.0.252:9092", "192.168.0.251:9092", "192.168.0.250:9092"} |
119 | // groupid := "partnermg_dev" | 119 | // groupid := "partnermg_dev" |
120 | // topic := []string{"topic_test"} | 120 | // topic := []string{"topic_test"} |
121 | + logs.Debug(r.msgConsumer.kafkaHosts, r.msgConsumer.groupId, r.msgConsumer.topics) | ||
121 | consumer, err := cluster.NewConsumer(r.msgConsumer.kafkaHosts, r.msgConsumer.groupId, r.msgConsumer.topics, clusterCfg) | 122 | consumer, err := cluster.NewConsumer(r.msgConsumer.kafkaHosts, r.msgConsumer.groupId, r.msgConsumer.topics, clusterCfg) |
122 | // consumer, err := cluster.NewConsumer(khosts, groupid, topic, clusterCfg) | 123 | // consumer, err := cluster.NewConsumer(khosts, groupid, topic, clusterCfg) |
123 | if err != nil { | 124 | if err != nil { |
-
请 注册 或 登录 后发表评论