mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
refactor: move config defaults from TOML files to Default trait (#352)
This commit is contained in:
@ -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)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user