MCPcopy Create free account
hub / github.com/carsonpo/haystackdb / has_been_committed

Method has_been_committed

src/structures/wal.rs:222–227  ·  view source on GitHub ↗
(&mut self, hash: u64)

Source from the content-addressed store, hash-verified

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)?;

Callers

nothing calls this directly

Calls 1

has_keyMethod · 0.80

Tested by

no test coverage detected