We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb6feaf commit fbaab3bCopy full SHA for fbaab3b
crates/pg_configuration/src/database.rs
@@ -28,8 +28,8 @@ pub struct DatabaseConfiguration {
28
pub database: String,
29
30
/// The connection timeout in seconds.
31
- #[partial(bpaf(long("conn_timeout")))]
32
- pub conn_timeout_secs: Option<u16>,
+ #[partial(bpaf(long("conn_timeout_secs"), fallback(Some(10)), debug_fallback))]
+ pub conn_timeout_secs: u16,
33
}
34
35
impl Default for DatabaseConfiguration {
@@ -40,7 +40,7 @@ impl Default for DatabaseConfiguration {
40
username: "postgres".to_string(),
41
password: "postgres".to_string(),
42
database: "postgres".to_string(),
43
- conn_timeout_secs: Some(10),
+ conn_timeout_secs: 10,
44
45
46
0 commit comments