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

Method update_trunk_state

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

Source from the content-addressed store, hash-verified

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) {
104 trunk.set_state(state);
105 }
106 Ok(())
107 }
108
109 fn update_trunk_path(&mut self, id: TrunkId, new_path: &str) -> Result<(), Self::Error> {
110 if let Some(trunk) = self.trunks.get_mut(&id) {

Callers

nothing calls this directly

Calls 2

get_mutMethod · 0.80
set_stateMethod · 0.45

Tested by

no test coverage detected