作者 唐旭辉

..

@@ -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 {