This commit is contained in:
azw 2023-08-20 15:43:15 +08:00
parent c0fb80dd05
commit d219aee28f
2 changed files with 4 additions and 3 deletions

4
app.go
View File

@ -69,9 +69,9 @@ func (this *app) init(userApp UserApp) {
_dbFilter = new(dbFilter) _dbFilter = new(dbFilter)
_dbFilter.init() _dbFilter.init()
_goStyleDb = new(dbPool) _goStyleDb = new(dbPool)
_goStyleDb.init() _goStyleDb.init(GO_STYLE_DB)
_jsStyleDb = new(dbPool) _jsStyleDb = new(dbPool)
_jsStyleDb.init() _jsStyleDb.init(JS_STYLE_DB)
_httpCliMgr = new(HttpCliMgr) _httpCliMgr = new(HttpCliMgr)
_httpCliMgr.init() _httpCliMgr.init()
{ {

View File

@ -29,7 +29,8 @@ type dbPool struct {
dataSourceHash map[string]*q5.ListHead dataSourceHash map[string]*q5.ListHead
} }
func (this *dbPool) init() { func (this *dbPool) init(style DBStyle) {
this.style = style
} }
func (this *dbPool) unInit() { func (this *dbPool) unInit() {