1
0
Fork 0
forked from alemi/upub

fix: better default configs

This commit is contained in:
əlemi 2024-06-08 17:32:22 +02:00
parent 743080395b
commit 6e4f492069
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -40,19 +40,19 @@ pub struct DatasourceConfig {
#[serde_inline_default("sqlite://./upub.db".into())] #[serde_inline_default("sqlite://./upub.db".into())]
pub connection_string: String, pub connection_string: String,
#[serde_inline_default(4)] #[serde_inline_default(32)]
pub max_connections: u32, pub max_connections: u32,
#[serde_inline_default(1)] #[serde_inline_default(1)]
pub min_connections: u32, pub min_connections: u32,
#[serde_inline_default(300u64)] #[serde_inline_default(90u64)]
pub connect_timeout_seconds: u64, pub connect_timeout_seconds: u64,
#[serde_inline_default(300u64)] #[serde_inline_default(30u64)]
pub acquire_timeout_seconds: u64, pub acquire_timeout_seconds: u64,
#[serde_inline_default(1u64)] #[serde_inline_default(10u64)]
pub slow_query_warn_seconds: u64, pub slow_query_warn_seconds: u64,
#[serde_inline_default(true)] #[serde_inline_default(true)]