Merge pull request #4680 from zav8/patch-1

Fix orm.SetMaxOpenConns
This commit is contained in:
Ming Deng 2021-08-04 21:51:52 +08:00 committed by GitHub
commit 96c63508df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -427,7 +427,7 @@ func SetMaxIdleConns(aliasName string, maxIdleConns int) {
// Deprecated you should not use this, we will remove it in the future
func SetMaxOpenConns(aliasName string, maxOpenConns int) {
al := getDbAlias(aliasName)
al.SetMaxIdleConns(maxOpenConns)
al.SetMaxOpenConns(maxOpenConns)
}
// SetMaxIdleConns Change the max idle conns for *sql.DB, use specify database alias name