From 36bf9bbc4c7fe8e66f2c194ad91781113e4a15cf Mon Sep 17 00:00:00 2001 From: azw Date: Sun, 13 Aug 2023 15:06:01 +0800 Subject: [PATCH] 1 --- app.go | 3 +++ metatable.go | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.go b/app.go index 1656ed2..d909898 100644 --- a/app.go +++ b/app.go @@ -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() diff --git a/metatable.go b/metatable.go index 92d8cde..09019ea 100644 --- a/metatable.go +++ b/metatable.go @@ -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) } }