(&self, hash: &Hash)
| 416 | type Error = MemoryStoreError; |
| 417 | |
| 418 | fn get_change(&self, hash: &Hash) -> Result<Change, Self::Error> { |
| 419 | self.changes |
| 420 | .read() |
| 421 | .unwrap() |
| 422 | .get(hash) |
| 423 | .cloned() |
| 424 | .ok_or_else(|| MemoryStoreError::NotFound(hash.to_base32())) |
| 425 | } |
| 426 | |
| 427 | fn has_change(&self, hash: &Hash) -> bool { |
| 428 | self.changes.read().unwrap().contains_key(hash) |