cli: Add timing information to rad-sync

This commit is contained in:
Alexis Sellier
2024-03-19 17:27:18 +01:00
parent ddd4bde302
commit f15afa84be
4 changed files with 54 additions and 15 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ fn announce_(rid: RepoId, node: &mut Node) -> Result<(), radicle::node::Error> {
Duration::from_secs(9),
|event, _| match event {
node::AnnounceEvent::Announced => ControlFlow::Continue(()),
node::AnnounceEvent::RefsSynced { remote } => {
spinner.message(format!("Synced with {remote}.."));
node::AnnounceEvent::RefsSynced { remote, time } => {
spinner.message(format!("Synced with {remote} in {time:?}.."));
ControlFlow::Continue(())
}
},