feat(go): skip setting open connections;

This commit is contained in:
Vishal Dalwadi 2025-06-10 15:26:42 +05:30
parent deb3be363b
commit 67baa75f45
2 changed files with 0 additions and 10 deletions

View file

@ -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()
}

View file

@ -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
}