Skip to content

Commit

Permalink
Only print searching when cache miss searching
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipK committed Sep 28, 2021
1 parent 6022293 commit 1924afd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/steamgriddb/cached_search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions src/steamgriddb/downloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1924afd

Please sign in to comment.