Only print searching when cache miss searching

This commit is contained in:
Philip
2021-09-28 21:50:25 +02:00
parent 60222936c2
commit 1924afd197
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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);