From 5e9b8f048e5e6ebdbad39b9026eed9511fec66f8 Mon Sep 17 00:00:00 2001 From: Lohachov Mykhailo Date: Sat, 30 Nov 2024 16:51:24 +0900 Subject: [PATCH] fix: fix calls for all-features Signed-off-by: Lohachov Mykhailo --- crates/irohad/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/irohad/src/main.rs b/crates/irohad/src/main.rs index 130dd3deb4..32d325b77a 100644 --- a/crates/irohad/src/main.rs +++ b/crates/irohad/src/main.rs @@ -392,7 +392,7 @@ async fn start_telemetry( #[cfg(feature = "dev-telemetry")] { - if let Some(out_file) = &config.dev_telemetry.out_file { + if let Some(out_file) = config.dev_telemetry().out_file() { let receiver = logger .subscribe_on_telemetry(iroha_logger::telemetry::Channel::Future) .await @@ -590,7 +590,7 @@ fn validate_config(config: &Config) -> Result<(), ConfigError> { } #[cfg(feature = "dev-telemetry")] - if let Some(path) = &config.dev_telemetry.out_file { + if let Some(path) = &config.dev_telemetry().out_file() { if path.value().parent().is_none() { emitter.emit( Report::new(ConfigError::TelemetryOutFileIsRootOrEmpty)