gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 974ec80a206f4e797e88dbb3a429b53667e327c5
parent acc333c40bcf45fb78a0701596a99e93800fe566
Author: tobi <31960611+tsmethurst@users.noreply.github.com>
Date:   Wed, 18 Jan 2023 14:37:52 +0100

[chore] Change default sqlite busy timeout to 5m (#1352)


Diffstat:
Mdocs/configuration/database.md | 2+-
Mexample/config.yaml | 2+-
Minternal/config/defaults.go | 2+-
Mtestrig/config.go | 2+-
4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/configuration/database.md b/docs/configuration/database.md @@ -138,5 +138,5 @@ db-sqlite-cache-size: "64MiB" # See: https://www.sqlite.org/pragma.html#pragma_busy_timeout # Examples: ["0s", "1s", "30s", "1m", "5m"] # Default: "5s" -db-sqlite-busy-timeout: "30s" +db-sqlite-busy-timeout: "5m" ``` diff --git a/example/config.yaml b/example/config.yaml @@ -194,7 +194,7 @@ db-sqlite-cache-size: "64MiB" # See: https://www.sqlite.org/pragma.html#pragma_busy_timeout # Examples: ["0s", "1s", "30s", "1m", "5m"] # Default: "5s" -db-sqlite-busy-timeout: "30s" +db-sqlite-busy-timeout: "5m" cache: gts: diff --git a/internal/config/defaults.go b/internal/config/defaults.go @@ -51,7 +51,7 @@ var Defaults = Configuration{ DbSqliteJournalMode: "WAL", DbSqliteSynchronous: "NORMAL", DbSqliteCacheSize: 64 * bytesize.MiB, - DbSqliteBusyTimeout: time.Second * 30, + DbSqliteBusyTimeout: time.Minute * 5, WebTemplateBaseDir: "./web/template/", WebAssetBaseDir: "./web/assets/", diff --git a/testrig/config.go b/testrig/config.go @@ -55,7 +55,7 @@ var testDefaults = config.Configuration{ DbSqliteJournalMode: "WAL", DbSqliteSynchronous: "NORMAL", DbSqliteCacheSize: 64 * bytesize.MiB, - DbSqliteBusyTimeout: time.Second * 30, + DbSqliteBusyTimeout: time.Minute * 5, WebTemplateBaseDir: "./web/template/", WebAssetBaseDir: "./web/assets/",