summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index d26d923..0a39d70 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -11,7 +11,8 @@ async fn main() -> anyhow::Result<()> {
while i < args.n {
let url = args.url.clone();
let client = client.clone();
- let x = tokio::spawn(async move { client.get(&url).send().await });
+ let x = tokio::spawn(
+ async move { client.get(&url).send().await });
tasks.push(x);
i += 1;
}
@@ -20,7 +21,8 @@ async fn main() -> anyhow::Result<()> {
let result = task.await?;
let response = result?;
if !response.status().is_success() {
- println!("{:?} {}", args.url, response.status());
+ println!("{:?} {}", args.url,
+ response.status());
}
}
println!("OK");