Attempt to fix 'database is locked' error

This commit is contained in:
ekzyis 2025-12-18 23:35:02 +01:00
parent e0b7574166
commit 75dfe4ae97

View File

@ -19,6 +19,11 @@ func init() {
if err != nil {
log.Fatal(err)
}
// fix 'database is locked' error
// see https://github.com/mattn/go-sqlite3/issues/274#issuecomment-191597862
_db.SetMaxOpenConns(1)
migrate(_db)
}