increase connection lifetime

This commit is contained in:
Andre Medeiros 2021-07-07 22:59:19 -04:00
parent 15c543bb62
commit 8455d8941c

View file

@ -197,6 +197,7 @@ func main() {
db.SetMaxOpenConns(workers * 2)
db.SetMaxIdleConns(workers)
db.SetConnMaxLifetime(time.Hour)
statsd, err := statsd.New("127.0.0.1:8125")
if err != nil {