Skip to content

Commit

Permalink
common: match max idle conns with max open conns
Browse files Browse the repository at this point in the history
  • Loading branch information
jogramming committed Feb 25, 2020
1 parent f797a2d commit 3004cf7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ func connectDB(host, user, pass, dbName string) error {
boil.SetDB(PQ)
if err == nil {
PQ.SetMaxOpenConns(3)
PQ.SetMaxIdleConns(3)
}
GORM.SetLogger(&GORMLogger{})

Expand Down

0 comments on commit 3004cf7

Please sign in to comment.