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

Source from the content-addressed store, hash-verified

1081 }
1082
1083 fn put_crdt_trunk_branch(
1084 &mut self,
1085 trunk_key: &[u8; 12],
1086 branch_key: &[u8; 12],
1087 ) -> PristineResult<()> {
1088 let mut table = self.txn.open_multimap_table(TRUNK_BRANCHES)?;
1089 table.insert(trunk_key, branch_key)?;
1090 Ok(())
1091 }
1092
1093 fn put_crdt_branch_after(
1094 &mut self,

Callers 3

put_branchFunction · 0.80
put_branchFunction · 0.80

Calls 1

insertMethod · 0.45