Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Aug 21, 2024
1 parent 7e73e8f commit 2896c49
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/core/src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,11 @@ impl Storage for MemStorage {
}

fn load_sig(&self, path: &str) -> Result<SigStore> {
let x = self.sigs.read().unwrap(); // @CTB this is causing a problem
Ok(x.get(path).unwrap().clone())
let x = self.sigs.read().unwrap();
match x.get(path) {
Some(path) => Ok(path.clone()),
None => panic!("cannot get path")
}
}

fn save_sig(&self, path: &str, sig: Signature) -> Result<String> {
Expand Down

0 comments on commit 2896c49

Please sign in to comment.