This commit is contained in:
azw 2023-08-13 15:06:01 +08:00
parent af8b118178
commit 36bf9bbc4c
2 changed files with 3 additions and 3 deletions

3
app.go
View File

@ -63,6 +63,8 @@ func (this *app) init(userApp UserApp) {
_sysLog.init()
_tgLog = new(TGLog_)
_tgLog.init()
_httpCliMgr = new(HttpCliMgr)
_httpCliMgr.init()
{
var tmpNodeId, tmpInstanceId int
flag.IntVar(&tmpNodeId, "n", 0, "node id")
@ -86,6 +88,7 @@ func (this *app) init(userApp UserApp) {
func (this *app) unInit() {
this.chGoLoopTimerExit <- 1
_httpCliMgr.unInit()
_timer.unInit()
_timer = nil
this.userApp.UnInit()

View File

@ -201,9 +201,6 @@ func LoadMetaTable(table interface{}) {
for i := 0; i < 3; i++ {
for ii := 0; ii < ele.NumField(); ii++ {
var tbl MetaTable = ele.Field(ii).Interface().(MetaTable)
if !tbl.IsNoLoad() {
tbl.Load()
}
tbl.ElementsInit(i)
}
}