diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-10-29 00:32:01 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-10-29 00:37:38 +0200 |
commit | e797bffab9948016619a765839c3be67f2f13d8d (patch) | |
tree | 3c2b850ab88b6086625222fdf061ac8b1f285ddd /crawler | |
parent | Frontend: Use ResultComponent to display search results (diff) | |
download | OSSE-e797bffab9948016619a765839c3be67f2f13d8d.tar.gz OSSE-e797bffab9948016619a765839c3be67f2f13d8d.tar.bz2 OSSE-e797bffab9948016619a765839c3be67f2f13d8d.zip |
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.
Diffstat (limited to 'crawler')
-rw-r--r-- | crawler/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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) |