From 75dfe4ae97f7fe8ff669dc5b77f7fadb6528fe6d Mon Sep 17 00:00:00 2001 From: ekzyis Date: Thu, 18 Dec 2025 23:35:02 +0100 Subject: [PATCH] Attempt to fix 'database is locked' error --- db/db.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/db/db.go b/db/db.go index 1d543b8..9849948 100644 --- a/db/db.go +++ b/db/db.go @@ -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) }