调试优化
This commit is contained in:
parent
3a86736040
commit
a341917c7e
@ -14,7 +14,7 @@
|
||||
"AppPath": "./app",
|
||||
"TELOGDIR" : "./teLog/",
|
||||
|
||||
"GameName": "pet_home",
|
||||
"GameName": "pet_home_local",
|
||||
"GameID": 1,
|
||||
"ServerType":"node",
|
||||
|
||||
|
||||
@ -13,6 +13,9 @@ var KafkaMod *kafka.Writer
|
||||
var topic string
|
||||
|
||||
func init() {
|
||||
if conf.Server.GameName == "pet_home_local" {
|
||||
return
|
||||
}
|
||||
KafkaMod = newKafkaWriter(fmt.Sprintf("%s:%s", conf.Server.KafkaHost, conf.Server.KafkaPort), conf.Server.GameName)
|
||||
log.Debug("KafkaMod init")
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user