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:1698–1706  ·  view source on GitHub ↗
(
        &mut self,
        trunk_key: &[u8; 12],
        branch_key: &[u8; 12],
    )

Source from the content-addressed store, hash-verified

1696 }
1697
1698 fn put_crdt_trunk_branch(
1699 &mut self,
1700 trunk_key: &[u8; 12],
1701 branch_key: &[u8; 12],
1702 ) -> PristineResult<()> {
1703 let mut table = self.txn.open_multimap_table(TRUNK_BRANCHES)?;
1704 table.insert(trunk_key, branch_key)?;
1705 Ok(())
1706 }
1707
1708 fn put_crdt_branch_after(
1709 &mut self,

Callers 3

put_branchFunction · 0.80
put_branchFunction · 0.80

Calls 1

insertMethod · 0.45