Revert "db: cap the maximum number of simultaneous connections to the database"

This reverts commit 29ea78f0394a175100666894a15de056ce286b57.
This commit is contained in:
nemunaire 2019-01-18 17:01:14 +01:00
parent 7227c7109e
commit cfb06009c9
1 changed files with 0 additions and 2 deletions

View File

@ -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 {