调试优化

This commit is contained in:
hahwu 2025-04-28 18:29:28 +08:00
parent 3a86736040
commit a341917c7e
2 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,7 @@
"AppPath": "./app",
"TELOGDIR" : "./teLog/",
"GameName": "pet_home",
"GameName": "pet_home_local",
"GameID": 1,
"ServerType":"node",

View File

@ -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")
}