From 6e4f49206999daefccf70596aa24312ad2275739 Mon Sep 17 00:00:00 2001 From: alemi Date: Sat, 8 Jun 2024 17:32:22 +0200 Subject: [PATCH] fix: better default configs --- upub/core/src/config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/upub/core/src/config.rs b/upub/core/src/config.rs index 15d3355d..144666c1 100644 --- a/upub/core/src/config.rs +++ b/upub/core/src/config.rs @@ -40,19 +40,19 @@ pub struct DatasourceConfig { #[serde_inline_default("sqlite://./upub.db".into())] pub connection_string: String, - #[serde_inline_default(4)] + #[serde_inline_default(32)] pub max_connections: u32, #[serde_inline_default(1)] pub min_connections: u32, - #[serde_inline_default(300u64)] + #[serde_inline_default(90u64)] pub connect_timeout_seconds: u64, - #[serde_inline_default(300u64)] + #[serde_inline_default(30u64)] pub acquire_timeout_seconds: u64, - #[serde_inline_default(1u64)] + #[serde_inline_default(10u64)] pub slow_query_warn_seconds: u64, #[serde_inline_default(true)]