Skip to content

Commit

Permalink
remove sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed May 13, 2024
1 parent 37ab7aa commit b9c6d01
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hfd-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,11 @@ impl HfClient {
let headers = self.headers.clone();
tasks.push(tokio::spawn(async move {
download(headers, url, path, CHUNK_SIZE).await;
std::thread::sleep(Duration::from_millis(10));
}));
}

for task in tasks {
task.await.unwrap();
std::thread::sleep(Duration::from_millis(100));
}
}
Ok(())
Expand Down

0 comments on commit b9c6d01

Please sign in to comment.