mirror of https://github.com/gophish/gophish
Potential fix for database locking issue. Fixes #331
parent
b403e97eee
commit
b00e6746d5
|
@ -88,6 +88,7 @@ func Setup() error {
|
||||||
db, err = gorm.Open("sqlite3", config.Conf.DBPath)
|
db, err = gorm.Open("sqlite3", config.Conf.DBPath)
|
||||||
db.LogMode(false)
|
db.LogMode(false)
|
||||||
db.SetLogger(Logger)
|
db.SetLogger(Logger)
|
||||||
|
db.DB().SetMaxOpenConns(1)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Logger.Println(err)
|
Logger.Println(err)
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue