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

Method put_crdt_branch_after

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

Source from the content-addressed store, hash-verified

1091 }
1092
1093 fn put_crdt_branch_after(
1094 &mut self,
1095 branch_key: &[u8; 12],
1096 after_key: &[u8; 12],
1097 ) -> PristineResult<()> {
1098 let mut table = self.txn.open_table(BRANCH_AFTER)?;
1099 table.insert(branch_key, after_key)?;
1100 Ok(())
1101 }
1102
1103 fn put_crdt_leaf(&mut self, key: &[u8; 12], value: &[u8; 22]) -> PristineResult<()> {
1104 let mut table = self.txn.open_table(LEAVES)?;

Calls 1

insertMethod · 0.45