(&self, hash: &Hash)
| 440 | type Error = MemoryStoreError; |
| 441 | |
| 442 | fn get_change(&self, hash: &Hash) -> Result<Change, Self::Error> { |
| 443 | self.changes |
| 444 | .read() |
| 445 | .unwrap() |
| 446 | .get(hash) |
| 447 | .cloned() |
| 448 | .ok_or_else(|| MemoryStoreError::NotFound(hash.to_base32())) |
| 449 | } |
| 450 | |
| 451 | fn has_change(&self, hash: &Hash) -> bool { |
| 452 | self.changes.read().unwrap().contains_key(hash) |