MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / has_change_in_graph

Method has_change_in_graph

atomic-core/src/pristine/txn/write/graph.rs:277–283  ·  view source on GitHub ↗
(&self, change_id: NodeId)

Source from the content-addressed store, hash-verified

275 }
276
277 fn has_change_in_graph(&self, change_id: NodeId) -> PristineResult<bool> {
278 let table = self.txn.open_multimap_table(GRAPH)?;
279 let start_key = encode_vertex(change_id.get(), 0, 0);
280 let end_key = encode_vertex(change_id.get(), u64::MAX, u64::MAX);
281 let has = try_is_present(table.range::<&[u8; 24]>(&start_key..=&end_key)?)?;
282 Ok(has)
283 }
284}
285
286#[cfg(test)]

Callers

nothing calls this directly

Calls 3

encode_vertexFunction · 0.85
try_is_presentFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected