fix: better default configs
This commit is contained in:
parent
743080395b
commit
6e4f492069
1 changed files with 4 additions and 4 deletions
|
@ -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)]
|
||||||
|
|
Loading…
Reference in a new issue