Sketch out indexes in Store

This commit is contained in:
Yuriy Dupyn 2024-02-04 16:57:19 +01:00
parent dae012daa7
commit 89305b6126
4 changed files with 82 additions and 32 deletions

View file

@ -83,8 +83,8 @@ where
Ok(())
}
pub async fn lookup(&self, k: K) -> Result<Option<HashSet<V>>> {
let hashset = self.data.get(&k).unwrap();
pub async fn lookup(&self, k: &K) -> Result<Option<HashSet<V>>> {
let hashset = self.data.get(k).unwrap();
Ok(Some(hashset.clone()))
}