diff --git a/iroh-cli/src/commands/doctor.rs b/iroh-cli/src/commands/doctor.rs index 92a1ee676d..d4629c0073 100644 --- a/iroh-cli/src/commands/doctor.rs +++ b/iroh-cli/src/commands/doctor.rs @@ -366,7 +366,7 @@ impl Gui { .template("{spinner:.green} [{bar:80.cyan/blue}] {msg} {bytes}/{total_bytes} ({bytes_per_sec})").unwrap() .progress_chars("█▉▊▋▌▍▎▏ ")); let counters2 = counters.clone(); - let counter_task = AbortingJoinHandle(tokio::spawn(async move { + let counter_task = AbortingJoinHandle::from(tokio::spawn(async move { loop { Self::update_counters(&counters2); Self::update_connection_info(&conn_info, &endpoint, &node_id);