diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-04-23 12:51:57 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-04-26 14:46:22 +0200 |
commit | 1ebfa387fa5d47e3200b990f63f55bbe36adeff1 (patch) | |
tree | 52496b7406e2b90150358e0ad247e769e3f3b702 /src/config | |
parent | 155b9001a2db30588acf148f9c755f4b187e8e3a (diff) |
Add support for database connection timeout
This patch adds support for a database connection timeout, giving the user the
option to configure one, but hardcoding a default timeout to 30 seconds.
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/not_validated.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config/not_validated.rs b/src/config/not_validated.rs index 451a3d2..14399c4 100644 --- a/src/config/not_validated.rs +++ b/src/config/not_validated.rs @@ -97,6 +97,10 @@ pub struct NotValidatedConfiguration { database_name: String, #[getset(get = "pub")] + #[serde(rename = "database_connection_timeout")] + database_connection_timeout: Option<u16>, + + #[getset(get = "pub")] docker: DockerConfig, #[getset(get = "pub")] |