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

Method new

atomic-core/src/apply/graph_batch.rs:41–48  ·  view source on GitHub ↗
(txn: &'txn WriteTxn<'a>)

Source from the content-addressed store, hash-verified

39
40impl<'txn, 'a> CachedWriteGraphTxn<'txn, 'a> {
41 pub fn new(txn: &'txn WriteTxn<'a>) -> PristineResult<Self> {
42 Ok(Self {
43 graph: txn.txn.open_multimap_table(GRAPH)?,
44 inode_graph: txn.txn.open_multimap_table(INODE_GRAPH)?,
45 txn,
46 index: RefCell::new(VertexSpanIndex::default()),
47 })
48 }
49
50 /// Ensure all of `change_id`'s spans are loaded into the in-memory index.
51 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected