summaryrefslogtreecommitdiffstats
path: root/src/commands/endpoint.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/endpoint.rs')
-rw-r--r--src/commands/endpoint.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/endpoint.rs b/src/commands/endpoint.rs
index 4de51d2..e69dc56 100644
--- a/src/commands/endpoint.rs
+++ b/src/commands/endpoint.rs
@@ -75,7 +75,7 @@ async fn ping(endpoint_names: Vec<EndpointName>,
.map(|endpoint| {
let bar = multibar.add(progress_generator.bar());
bar.set_length(n_pings);
- bar.set_message(format!("Pinging {}", endpoint.name()));
+ bar.set_message(&format!("Pinging {}", endpoint.name()));
async move {
for i in 1..(n_pings + 1) {
@@ -83,14 +83,14 @@ async fn ping(endpoint_names: Vec<EndpointName>,
let r = endpoint.ping().await;
bar.inc(1);
if let Err(e) = r {
- bar.finish_with_message(format!("Pinging {} failed", endpoint.name()));
+ bar.finish_with_message(&format!("Pinging {} failed", endpoint.name()));
return Err(e)
}
tokio::time::sleep(tokio::time::Duration::from_secs(sleep)).await;
}
- bar.finish_with_message(format!("Pinging {} successful", endpoint.name()));
+ bar.finish_with_message(&format!("Pinging {} successful", endpoint.name()));
Ok(())
}
})