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

Method update_trunk_state

atomic-core/src/crdt/apply/trunk.rs:421–430  ·  view source on GitHub ↗
(
            &mut self,
            id: TrunkId,
            state: TrunkState,
        )

Source from the content-addressed store, hash-verified

419 }
420
421 fn update_trunk_state(
422 &mut self,
423 id: TrunkId,
424 state: TrunkState,
425 ) -> Result<(), Self::Error> {
426 if let Some(trunk) = self.trunks.get_mut(&id) {
427 trunk.set_state(state);
428 }
429 Ok(())
430 }
431
432 fn update_trunk_path(&mut self, id: TrunkId, new_path: &str) -> Result<(), Self::Error> {
433 if let Some(trunk) = self.trunks.get_mut(&id) {

Callers 2

apply_deleteFunction · 0.45
apply_undeleteFunction · 0.45

Calls 2

get_mutMethod · 0.80
set_stateMethod · 0.45

Tested by

no test coverage detected