Sketch out indexes in Store
This commit is contained in:
parent
dae012daa7
commit
89305b6126
4 changed files with 82 additions and 32 deletions
|
|
@ -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()))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue