refactor: move config defaults from TOML files to Default trait (#352)

This commit is contained in:
Sanchith Hegde
2023-01-17 19:13:16 +05:30
committed by GitHub
parent 4f6a8fcd9d
commit beb0384047
20 changed files with 589 additions and 169 deletions

View File

@ -26,6 +26,9 @@ async fn main() -> ApplicationResult<()> {
#[allow(clippy::expect_used)]
let conf = Settings::with_config_path(cmd_line.config_path)
.expect("Unable to construct application configuration");
#[allow(clippy::expect_used)]
conf.validate()
.expect("Failed to validate router configuration");
let _guard = logger::setup(&conf.log)?;