summaryrefslogtreecommitdiffstats
path: root/tedge
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-03-24 10:03:03 +0100
committerMatthias Beyer <matthias.beyer@ifm.com>2022-03-25 07:43:02 +0100
commit716fc32c8ee99204e579398159011b6d896ab0ef (patch)
tree532d382ab6555e31d7d36aecf89b7ee4e5a67366 /tedge
parent5d1688dc68431572efb1a3ab048a735e0f2f9d38 (diff)
Fix: Do not validate the config before running the app
because the TedgeApplication::run() method takes care of that now, so there's no need to verify the configuration twice. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
Diffstat (limited to 'tedge')
-rw-r--r--tedge/src/main.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/tedge/src/main.rs b/tedge/src/main.rs
index 0c9a704b..90749277 100644
--- a/tedge/src/main.rs
+++ b/tedge/src/main.rs
@@ -93,11 +93,7 @@ async fn main() -> anyhow::Result<()> {
match args.command {
cli::CliCommand::Run { .. } => {
- debug!("Going to validate the configuration and run the application");
-
- validate_config(&application).await?;
- info!("Configuration validated");
-
+ debug!("Going to run the application");
run(cancel_sender, application).await
}
cli::CliCommand::ValidateConfig { .. } => {