mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 14:03:42 +02:00
Only print searching when cache miss searching
This commit is contained in:
@@ -28,7 +28,7 @@ impl<'a> CachedSearch<'a> {
|
|||||||
if let Some(result) = cached_result {
|
if let Some(result) = cached_result {
|
||||||
return Ok(Some(result.1));
|
return Ok(Some(result.1));
|
||||||
}
|
}
|
||||||
|
println!("Searching for {}", query);
|
||||||
let search = self.client.search(query).await?;
|
let search = self.client.search(query).await?;
|
||||||
if search.is_empty() {
|
if search.is_empty() {
|
||||||
return Ok(None);
|
return Ok(None);
|
||||||
|
|||||||
@@ -30,8 +30,7 @@ pub async fn download_images<'a, 'b>(
|
|||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
let mut search_results = HashMap::new();
|
let mut search_results = HashMap::new();
|
||||||
for s in shortcuts_to_search_for {
|
for s in shortcuts_to_search_for {
|
||||||
println!("Searching for {}", s.app_name);
|
|
||||||
let search = search.search(s.app_id, s.app_name).await?;
|
let search = search.search(s.app_id, s.app_name).await?;
|
||||||
if let Some(search) = search {
|
if let Some(search) = search {
|
||||||
search_results.insert(s.app_id, search);
|
search_results.insert(s.app_id, search);
|
||||||
|
|||||||
Reference in New Issue
Block a user