diff --git a/database/postgres.go b/database/postgres.go index c28e9425..c1917227 100644 --- a/database/postgres.go +++ b/database/postgres.go @@ -5,8 +5,6 @@ import ( "database/sql" "errors" "github.com/gravitl/netmaker/db" - "time" - _ "github.com/lib/pq" ) @@ -35,9 +33,6 @@ func initPGDB() error { return dbOpenErr } - PGDB.SetMaxOpenConns(5) - PGDB.SetConnMaxLifetime(time.Hour) - return PGDB.Ping() } diff --git a/database/sqlite.go b/database/sqlite.go index f922e7b6..9abc4f4a 100644 --- a/database/sqlite.go +++ b/database/sqlite.go @@ -5,8 +5,6 @@ import ( "database/sql" "errors" "github.com/gravitl/netmaker/db" - "time" - _ "github.com/mattn/go-sqlite3" // need to blank import this package ) @@ -35,9 +33,6 @@ func initSqliteDB() error { return dbOpenErr } - SqliteDB.SetMaxOpenConns(5) - SqliteDB.SetConnMaxLifetime(time.Hour) - return nil }