Skip to content

Commit fbaab3b

Browse files
debug representation
1 parent eb6feaf commit fbaab3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/pg_configuration/src/database.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ pub struct DatabaseConfiguration {
2828
pub database: String,
2929

3030
/// The connection timeout in seconds.
31-
#[partial(bpaf(long("conn_timeout")))]
32-
pub conn_timeout_secs: Option<u16>,
31+
#[partial(bpaf(long("conn_timeout_secs"), fallback(Some(10)), debug_fallback))]
32+
pub conn_timeout_secs: u16,
3333
}
3434

3535
impl Default for DatabaseConfiguration {
@@ -40,7 +40,7 @@ impl Default for DatabaseConfiguration {
4040
username: "postgres".to_string(),
4141
password: "postgres".to_string(),
4242
database: "postgres".to_string(),
43-
conn_timeout_secs: Some(10),
43+
conn_timeout_secs: 10,
4444
}
4545
}
4646
}

0 commit comments

Comments
 (0)