补充启动json配置

This commit is contained in:
liwei1dao 2023-12-18 15:01:03 +08:00
parent bfa01938ec
commit ca643695b5
2 changed files with 5 additions and 2 deletions

View File

@ -21,7 +21,7 @@ type GameConfig struct {
BattleOpen bool //是否启用战斗
BattleAddr string //战斗服地址
PprofOpen bool //是否启动性能监控
PprofAddr string //性能监控查看端口
PprofPort int //性能监控查看端口
}
//区服db配置

View File

@ -466,7 +466,6 @@ func convertServiceSttings(config *comm.GameConfig, id int, stype string, ip str
"MaxAgeTime": 7,
}
}
sseting.Sys["configure"] = map[string]interface{}{
"ConfigurePath": "./json",
"TimestampFile": "./timestamp.text",
@ -485,6 +484,10 @@ func convertServiceSttings(config *comm.GameConfig, id int, stype string, ip str
"MongodbDatabase": config.LoaclDB.MongodbDatabase,
"CrossConfig": crosspath,
}
sseting.Sys["pprof"] = map[string]interface{}{
"IsOpen": config.PprofOpen,
"ListenPort": config.PprofPort,
}
return
}