(&mut self, hash: u64)
| 220 | } |
| 221 | |
| 222 | pub fn has_been_committed(&mut self, hash: u64) -> Result<bool, io::Error> { |
| 223 | match self.commit_list.has_key(hash) { |
| 224 | Ok(r) => Ok(r), |
| 225 | Err(_) => Ok(false), |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | // pub fn get_commits_after(&self, timestamp: u64) -> Result<Vec<CommitListItem>, io::Error> { |
| 230 | // let hashes = self.timestamps.get_range(timestamp, u64::MAX)?; |