Limit number of open DB connections.

master
q3k 2016-10-11 02:11:33 +02:00
parent 04950529a4
commit b04024cffc
1 changed files with 1 additions and 0 deletions

View File

@ -225,6 +225,7 @@ func main() {
glog.Exit(err)
}
defer db.Close()
db.SetMaxOpenConns(1)
switchApp := newSwitchApp(db)
if err = switchApp.RunSchemaUpdate(); err != nil {