mirror of
https://github.com/djibux/BoilR.git
synced 2026-12-01 01:41:59 +01:00
Only print searching when cache miss searching
This commit is contained in:
1 parent
60222936c2
commit
1924afd197
2 files changed
+2
-3
No files matched your search
@@ -28,7 +28,7 @@ impl<'a> CachedSearch<'a> {
|
||||
if let Some(result) = cached_result {
|
||||
return Ok(Some(result.1));
|
||||
}
|
||||
|
||||
println!("Searching for {}", query);
|
||||
let search = self.client.search(query).await?;
|
||||
if search.is_empty() {
|
||||
return Ok(None);
|
||||
|
||||
@@ -30,8 +30,7 @@ pub async fn download_images<'a, 'b>(
|
||||
return Ok(());
|
||||
}
|
||||
let mut search_results = HashMap::new();
|
||||
for s in shortcuts_to_search_for {
|
||||
println!("Searching for {}", s.app_name);
|
||||
for s in shortcuts_to_search_for {
|
||||
let search = search.search(s.app_id, s.app_name).await?;
|
||||
if let Some(search) = search {
|
||||
search_results.insert(s.app_id, search);
|
||||
|
||||
Reference in new issue
Block a user