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

Method del_trunk

atomic-core/tests/crdt_integration_test.rs:92–100  ·  view source on GitHub ↗
(&mut self, id: TrunkId)

Source from the content-addressed store, hash-verified

90 }
91
92 fn del_trunk(&mut self, id: TrunkId) -> Result<bool, Self::Error> {
93 if let Some(trunk) = self.trunks.remove(&id) {
94 self.path_index.remove(trunk.path());
95 self.inode_index.remove(&trunk.inode());
96 Ok(true)
97 } else {
98 Ok(false)
99 }
100 }
101
102 fn update_trunk_state(&mut self, id: TrunkId, state: TrunkState) -> Result<(), Self::Error> {
103 if let Some(trunk) = self.trunks.get_mut(&id) {

Callers

nothing calls this directly

Calls 3

removeMethod · 0.65
pathMethod · 0.45
inodeMethod · 0.45

Tested by

no test coverage detected