perf: flush response after response handled (close #364)

This commit is contained in:
JustSong
2023-08-12 18:10:15 +08:00
parent 2a527ee436
commit 7bddc73b96
4 changed files with 10 additions and 2 deletions

View File

@@ -57,6 +57,9 @@ func InitDB() (err error) {
}
common.SysLog("database connected")
if err == nil {
if common.DebugEnabled {
db = db.Debug()
}
DB = db
sqlDB, err := DB.DB()
if err != nil {