add multi-channels example

This commit is contained in:
Marc Planard 2023-10-14 23:23:56 +02:00
parent f62a84ad07
commit ff3fbd2eb4
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
tx.as_ref().unwrap().send(url).await.unwrap();
}
}
println!("links: {}", links.len());
let mut results = vec![];
// recieve the results and send back new url to the workers
while let Some((idx, res)) = rx.recv().await {