set SetMaxOpenConns to 8

Signed-off-by: Derek McQuay <derekmcquay@gmail.com>
This commit is contained in:
Derek McQuay 2018-04-10 20:07:47 -07:00
parent 1cdf0a9978
commit 90a58fbb87
No known key found for this signature in database
GPG Key ID: 50CA472F40A5AFED

1
db.go
View File

@ -29,6 +29,7 @@ func NewDB(dbhost, dbname, dbuser string) (*DB, error) {
d := &DB{db}
err = d.initializeDB()
db.SetMaxOpenConns(8)
return d, err
}