mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-23 00:17:10 +08:00
feat(go): skip setting open connections;
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user