This commit is contained in:
aozhiwei 2024-08-10 12:54:41 +08:00
parent dd033a2521
commit 0cbea64e07
3 changed files with 16 additions and 3 deletions

2
app.go
View File

@ -103,7 +103,7 @@ func (this *app) init(userApp UserApp) {
_tgLog.init()
_dbFilter = new(dbFilter)
_dbFilter.init()
_goStyleDb = new(dbPool)
_goStyleDb = new(goDbPool)
_goStyleDb.init(GO_STYLE_DB)
_jsStyleDb = new(dbPool)
_jsStyleDb.init(JS_STYLE_DB)

View File

@ -6,7 +6,7 @@ var _sysLog *sysLog
var _tgLog *tgLog
var _httpCliMgr *httpCliMgr
var _dbFilter *dbFilter
var _goStyleDb *dbPool
var _goStyleDb *goDbPool
var _jsStyleDb *dbPool
func GetApp() App {
@ -33,7 +33,7 @@ func GetDbFilter() *dbFilter {
return _dbFilter
}
func GetGoStyleDb() *dbPool {
func GetGoStyleDb() *goDbPool {
return _goStyleDb
}

13
godbpool.go Normal file
View File

@ -0,0 +1,13 @@
package f5
type goDbPool struct {
dbPool
}
func (this *goDbPool) init(style DBStyle) {
this.dbPool.init(style)
}
func (this *goDbPool) unInit() {
this.dbPool.unInit()
}