mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
refactor: move config defaults from TOML files to Default trait (#352)
This commit is contained in:
@ -9,6 +9,9 @@ async fn main() -> DrainerResult<()> {
|
||||
#[allow(clippy::expect_used)]
|
||||
let conf = settings::Settings::with_config_path(cmd_line.config_path)
|
||||
.expect("Unable to construct application configuration");
|
||||
#[allow(clippy::expect_used)]
|
||||
conf.validate()
|
||||
.expect("Failed to validate drainer configuration");
|
||||
|
||||
let store = services::Store::new(&conf, false).await;
|
||||
let store = std::sync::Arc::new(store);
|
||||
|
||||
Reference in New Issue
Block a user