From b494a3bd1f2e18dc9b5e57bbb87e755a6247452f Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Thu, 16 Oct 2025 01:21:11 -0500 Subject: [PATCH] chore: drop singleton connection limit on sqlite3 backend Signed-off-by: eternal-flame-AD --- database/database.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/database/database.go b/database/database.go index 90faff4..2dd6224 100644 --- a/database/database.go +++ b/database/database.go @@ -45,14 +45,6 @@ func New(dialect, connection, defaultUser, defaultPass string, strength int, cre // "too many connections", while load testing Gotify. sqldb.SetMaxOpenConns(10) - if dialect == "sqlite3" { - // We use the database connection inside the handlers from the http - // framework, therefore concurrent access occurs. Sqlite cannot handle - // concurrent writes, so we limit sqlite to one connection. - // see https://github.com/mattn/go-sqlite3/issues/274 - sqldb.SetMaxOpenConns(1) - } - if dialect == "mysql" { // Mysql has a setting called wait_timeout, which defines the duration // after which a connection may not be used anymore.