This commit is contained in:
Nazar Kanaev 2021-05-06 22:34:21 +01:00
parent 16e4cad9ad
commit da267a56ef

View File

@ -15,6 +15,7 @@ func New(path string) (*Storage, error) {
return nil, err return nil, err
} }
// TODO: https://foxcpp.dev/articles/the-right-way-to-use-go-sqlite3
db.SetMaxOpenConns(1) db.SetMaxOpenConns(1)
if err = migrate(db); err != nil { if err = migrate(db); err != nil {