MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / get_node_mut

Method get_node_mut

nodedb-cluster/src/topology.rs:219–221  ·  view source on GitHub ↗
(&mut self, node_id: u64)

Source from the content-addressed store, hash-verified

217 }
218
219 pub fn get_node_mut(&mut self, node_id: u64) -> Option<&mut NodeInfo> {
220 self.nodes.get_mut(&node_id)
221 }
222
223 /// Update a node's state. Bumps the version.
224 pub fn set_state(&mut self, node_id: u64, state: NodeState) -> bool {

Callers 1

handle_join_requestFunction · 0.80

Calls 1

get_mutMethod · 0.45

Tested by

no test coverage detected