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

Method put_crdt_path_trunk

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

Source from the content-addressed store, hash-verified

2171 }
2172
2173 fn put_crdt_path_trunk(&mut self, path: &str, trunk_key: &[u8; 12]) -> PristineResult<()> {
2174 let mut table = self.txn.open_table(PATH_TRUNK)?;
2175 table.insert(path, trunk_key)?;
2176 Ok(())
2177 }
2178
2179 fn del_crdt_path_trunk(&mut self, path: &str) -> PristineResult<()> {
2180 let mut table = self.txn.open_table(PATH_TRUNK)?;

Callers 2

put_trunkFunction · 0.80
update_trunk_pathFunction · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected