Skip to content

Commit

Permalink
fix refactor leftover error
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed Jul 8, 2024
1 parent 847913c commit f7a8dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iroh/examples/custom-protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vec<Hash>> {
pub fn query_local(&self, query: &str) -> Result<Vec<Hash>> {
let db = self.index.lock().unwrap();
db.iter()
.filter_map(|(text, hash)| text.contains(query).then_some(*hash))
Expand Down

0 comments on commit f7a8dac

Please sign in to comment.