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

Method has_change_in_graph

atomic-core/src/apply/graph_batch.rs:299–309  ·  view source on GitHub ↗
(&self, change_id: NodeId)

Source from the content-addressed store, hash-verified

297 }
298
299 fn has_change_in_graph(&self, change_id: NodeId) -> PristineResult<bool> {
300 let start_key = encode_vertex(change_id.get(), 0, 0);
301 let end_key = encode_vertex(change_id.get(), u64::MAX, u64::MAX);
302 let has = self
303 .graph
304 .range::<&[u8; 24]>(&start_key..=&end_key)?
305 .next()
306 .transpose()?
307 .is_some();
308 Ok(has)
309 }
310}
311
312impl<'txn, 'a> TreeTxnT for CachedWriteGraphTxn<'txn, 'a> {

Callers

nothing calls this directly

Calls 3

encode_vertexFunction · 0.85
getMethod · 0.65
nextMethod · 0.45

Tested by

no test coverage detected