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

Source from the content-addressed store, hash-verified

1602 }
1603
1604 fn put_crdt_trunk_branch(
1605 &mut self,
1606 trunk_key: &[u8; 12],
1607 branch_key: &[u8; 12],
1608 ) -> PristineResult<()> {
1609 let mut table = self.txn.open_multimap_table(TRUNK_BRANCHES)?;
1610 table.insert(trunk_key, branch_key)?;
1611 Ok(())
1612 }
1613
1614 fn put_crdt_branch_after(
1615 &mut self,

Callers 3

put_branchFunction · 0.80
put_branchFunction · 0.80

Calls 1

insertMethod · 0.45