We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent deb3be3 commit 67baa75Copy full SHA for 67baa75
database/postgres.go
@@ -5,8 +5,6 @@ import (
5
"database/sql"
6
"errors"
7
"github.com/gravitl/netmaker/db"
8
- "time"
9
-
10
_ "github.com/lib/pq"
11
)
12
@@ -35,9 +33,6 @@ func initPGDB() error {
35
33
return dbOpenErr
36
34
}
37
38
- PGDB.SetMaxOpenConns(5)
39
- PGDB.SetConnMaxLifetime(time.Hour)
40
41
return PGDB.Ping()
42
43
database/sqlite.go
_ "github.com/mattn/go-sqlite3" // need to blank import this package
@@ -35,9 +33,6 @@ func initSqliteDB() error {
- SqliteDB.SetMaxOpenConns(5)
- SqliteDB.SetConnMaxLifetime(time.Hour)
return nil
0 commit comments