Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ get_node
Method
get_node
nodedb-cluster/src/topology.rs:215–217 ·
view source on GitHub ↗
(&self, node_id: u64)
Source
from the content-addressed store, hash-verified
213
}
214
215
pub fn get_node(&self, node_id: u64) -> Option<&NodeInfo> {
216
self.nodes.get(&node_id)
217
}
218
219
pub fn get_node_mut(&mut self, node_id: u64) -> Option<&mut NodeInfo> {
220
self.nodes.get_mut(&node_id)
Callers
15
handle_pong
Method · 0.80
record_ping_failure
Method · 0.80
is_safe_to_remove
Function · 0.80
handle_learner_promotion
Function · 0.80
is_target_reachable
Function · 0.80
check_once
Method · 0.80
check_can_decommission
Function · 0.80
start
Method · 0.80
join_flow
Method · 0.80
forward_metadata_propose
Method · 0.80
forward_data_propose
Method · 0.80
phase1_base_copy
Function · 0.80
Calls
1
get
Method · 0.45
Tested by
2
handle_join_request_idempotent_no_mutation
Function · 0.64
handle_join_request_rejects_id_collision
Function · 0.64