提交 3b79a6b7 编写于 作者: K klausY

连接池bug修复

上级 1c11e86a
......@@ -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
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册