libadlin: Add recommended settings to avoid db flood

This commit is contained in:
nemunaire 2022-04-30 02:47:39 +02:00
parent 7187a7d187
commit f84f18ca01

View File

@ -48,6 +48,10 @@ func DBInit(dsn string) (err error) {
}
}
db.SetConnMaxLifetime(time.Minute * 5)
db.SetMaxOpenConns(20)
db.SetMaxIdleConns(10)
return
}