Skip to content

Commit

Permalink
fix: fix calls for all-features
Browse files Browse the repository at this point in the history
Signed-off-by: Lohachov Mykhailo <[email protected]>
  • Loading branch information
aoyako committed Nov 30, 2024
1 parent 727df53 commit 5e9b8f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/irohad/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5e9b8f0

Please sign in to comment.