Potential fix for database locking issue. Fixes #331

pull/336/head
Jordan Wright 2016-08-02 23:28:22 -05:00
parent b403e97eee
commit b00e6746d5
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ func Setup() error {
db, err = gorm.Open("sqlite3", config.Conf.DBPath)
db.LogMode(false)
db.SetLogger(Logger)
db.DB().SetMaxOpenConns(1)
if err != nil {
Logger.Println(err)
return err