From f7a8dacc1a1278e6223864ca450c470c1f12ff33 Mon Sep 17 00:00:00 2001 From: "Franz Heinzmann (Frando)" Date: Mon, 8 Jul 2024 11:24:55 +0200 Subject: [PATCH] fix refactor leftover error --- iroh/examples/custom-protocol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iroh/examples/custom-protocol.rs b/iroh/examples/custom-protocol.rs index 11a369412ed..71fe3e9028f 100644 --- a/iroh/examples/custom-protocol.rs +++ b/iroh/examples/custom-protocol.rs @@ -233,7 +233,7 @@ impl BlobSearch { /// Query the local database. /// /// Returns the list of hashes of blobs which contain `query` literally. - pub async fn query_local(&self, query: &str) -> Result> { + pub fn query_local(&self, query: &str) -> Result> { let db = self.index.lock().unwrap(); db.iter() .filter_map(|(text, hash)| text.contains(query).then_some(*hash))