Skip to content
Permalink
Browse files

limit 1 connection for sqlite

  • Loading branch information...
hunterlong committed Jun 6, 2019
1 parent 1efd322 commit c2cf13172b064262a01ffc27d090ffbc8d5dbde4
Showing with 3 additions and 0 deletions.
  1. +3 −0 core/database.go
@@ -214,6 +214,9 @@ func (db *DbConfig) Connect(retry bool, location string) error {
return err
}
}
if dbType == "sqlite3" {
dbSession.DB().SetMaxOpenConns(1)
}
err = dbSession.DB().Ping()
if err == nil {
DbSession = dbSession

0 comments on commit c2cf131

Please sign in to comment.
You can’t perform that action at this time.