mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 22:19:07 +00:00
Add db max open connections again
This commit is contained in:
@@ -115,6 +115,8 @@ func SetupDatabase() (*gorm.DB, error) {
|
||||
err = sqlDB.PingContext(ctx)
|
||||
cancel()
|
||||
|
||||
sqlDB.SetMaxOpenConns(80)
|
||||
|
||||
if err == nil {
|
||||
return db, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user