From 2ae5d9ec67134a7c07673c8ff00ce00b4ac74d6f Mon Sep 17 00:00:00 2001 From: Baitinq Date: Mon, 24 Oct 2022 12:58:57 +0200 Subject: Crawler: Set queue size to 2222 --- crawler/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawler/src/main.rs b/crawler/src/main.rs index e8efe77..d74f1f8 100644 --- a/crawler/src/main.rs +++ b/crawler/src/main.rs @@ -19,7 +19,7 @@ async fn crawler(http_client: Client, root_urls: Vec<&str>) { dbg!("Starting to crawl!"); //add root urls to queue - TODO: max q size - let (tx_crawling_queue, rx_crawling_queue) = async_channel::bounded::(4444); + let (tx_crawling_queue, rx_crawling_queue) = async_channel::bounded::(2222); for url in root_urls { tx_crawling_queue.send(String::from(url)).await.unwrap(); } -- cgit 1.4.1