From e797bffab9948016619a765839c3be67f2f13d8d Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sat, 29 Oct 2022 00:32:01 +0200 Subject: Crawler+Indexer+Frontend: Rename structs to follow logical relations Now Resource is CrawledResource as it is created by the crawler, and the previous CrawledResource is now IndexedResource as its created by the indexer. --- crawler/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawler') diff --git a/crawler/src/main.rs b/crawler/src/main.rs index 5c15d14..a831655 100644 --- a/crawler/src/main.rs +++ b/crawler/src/main.rs @@ -138,12 +138,12 @@ async fn push_crawl_entry_to_indexer( dbg!("Pushin to indexer"); #[derive(Serialize, Debug)] - struct Resource { + struct CrawledResource { url: String, content: String, } - let request_body = Resource { url, content }; + let request_body = CrawledResource { url, content }; match http_client .post(&indexer_url) -- cgit 1.4.1