作者 庄敏学

add

不能预览此文件类型
... ... @@ -13,6 +13,7 @@ func Run() {
messageHandlerMap["demo-v1"] = Demo
//"指定topic" => 对应的处理方法
messageHandlerMap[constant.KAFKA_BUSINESS_TOPIC] = handle.SyncDataBusinessAdmin
log.Logger.Debug("kafka host: " + constant.KAFKA_HOSTS + " group id:" + constant.KAFKA_GROUP_ID)
err := saramaConsumer.StartConsume(constant.KAFKA_HOSTS, constant.KAFKA_GROUP_ID, messageHandlerMap, log.Logger)
log.Logger.Error(err.Error())
}
... ...