修复kafka
This commit is contained in:
		
							parent
							
								
									ce0dd22425
								
							
						
					
					
						commit
						fb0cd7bd6e
					
				|  | @ -56,6 +56,7 @@ func (kk KafkaV2Mq) Consume(name string, hand interface{}, ci int) { | ||||||
| 		group = config.GetConf().DidpatchKafkaGroup | 		group = config.GetConf().DidpatchKafkaGroup | ||||||
| 	} | 	} | ||||||
| 	kfconfig := &kafka.ConfigMap{ | 	kfconfig := &kafka.ConfigMap{ | ||||||
|  | 		"api.version.request":   "true", | ||||||
| 		"bootstrap.servers":     config.GetConf().KafkaUrl, // Kafka服务器地址
 | 		"bootstrap.servers":     config.GetConf().KafkaUrl, // Kafka服务器地址
 | ||||||
| 		"group.id":              group,                     // 消费者组ID
 | 		"group.id":              group,                     // 消费者组ID
 | ||||||
| 		"auto.offset.reset":     "latest",                  // 自动从最早的消息开始消费earliest,latest
 | 		"auto.offset.reset":     "latest",                  // 自动从最早的消息开始消费earliest,latest
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue