Compare commits

...

1 Commits

Author SHA1 Message Date
Pascal Fischer
56af98b5b4 hard limit of 1 for sqlite max conn 2024-10-10 16:25:54 +02:00

View File

@@ -69,6 +69,11 @@ func NewSqlStore(ctx context.Context, db *gorm.DB, storeEngine StoreEngine, metr
if err != nil {
conns = runtime.NumCPU()
}
if storeEngine == SqliteStoreEngine {
conns = 1
}
sql.SetMaxOpenConns(conns)
log.Infof("Set max open db connections to %d", conns)