Revert "db: cap the maximum number of simultaneous connections to the database"
This reverts commit 29ea78f0394a175100666894a15de056ce286b57.
This commit is contained in:
parent
7227c7109e
commit
cfb06009c9
@ -43,8 +43,6 @@ func DBInit(dsn string) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
db.SetMaxOpenConns(768)
|
||||
|
||||
_, err = db.Exec(`SET SESSION sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO';`)
|
||||
for i := 0; err != nil && i < 15; i += 1 {
|
||||
if _, err = db.Exec(`SET SESSION sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO';`); err != nil && i <= 5 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user