cli: fix outputs

- `format!` was missing for the `"No seeds found"` message, so the `{rid}` was not being formatted.
- Missing a space between the seed and the timing.
This commit is contained in:
Fintan Halpenny 2025-05-30 12:13:30 +02:00 committed by Lorenz Leutgeb
parent ae1165fa58
commit caf9e241a6
2 changed files with 2 additions and 2 deletions

View File

@ -882,7 +882,7 @@ fn print_synced(synced: &BTreeMap<NodeId, sync::announce::SyncStatus>) {
sync::announce::SyncStatus::Synced { duration } => { sync::announce::SyncStatus::Synced { duration } => {
message.push_str(&format!( message.push_str(&format!(
"{}", "{}",
term::format::dim(format!("in {}s", duration.as_secs())) term::format::dim(format!(" in {}s", duration.as_secs()))
)); ));
} }
} }

View File

@ -224,7 +224,7 @@ where
term::info!( term::info!(
&mut reporting.completion; &mut reporting.completion;
"{}", "{}",
term::format::yellow("No seeds found for {rid}.") term::format::yellow(format!("No seeds found for {rid}."))
); );
return Ok(None); return Ok(None);
} }