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

Method put_crdt_trunk_branch

atomic-core/src/pristine/txn/write/mod.rs:1556–1564  ·  view source on GitHub ↗
(
        &mut self,
        trunk_key: &[u8; 12],
        branch_key: &[u8; 12],
    )

Source from the content-addressed store, hash-verified

1554 }
1555
1556 fn put_crdt_trunk_branch(
1557 &mut self,
1558 trunk_key: &[u8; 12],
1559 branch_key: &[u8; 12],
1560 ) -> PristineResult<()> {
1561 let mut table = self.txn.open_multimap_table(TRUNK_BRANCHES)?;
1562 table.insert(trunk_key, branch_key)?;
1563 Ok(())
1564 }
1565
1566 fn put_crdt_branch_after(
1567 &mut self,

Callers 3

put_branchFunction · 0.80
put_branchFunction · 0.80

Calls 1

insertMethod · 0.45