Browse Source

连接池bug修复

main
klausY 5 years ago
parent
commit
3b79a6b790
  1. 2
      QMPlusServer/init/qmsql/initMysql.go

2
QMPlusServer/init/qmsql/initMysql.go

@ -16,7 +16,7 @@ func InitMysql(admin config.Admin) *gorm.DB {
} else {
DEFAULTDB = db
DEFAULTDB.DB().SetMaxIdleConns(10)
DEFAULTDB.DB().SetMaxIdleConns(100)
DEFAULTDB.DB().SetMaxOpenConns(100)
}
return DEFAULTDB
}
Loading…
Cancel
Save