mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-15 07:20:26 +00:00
perf: flush response after response handled (close #364)
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user