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

Function node

nodedb/src/control/rolling_upgrade/view.rs:128–135  ·  view source on GitHub ↗
(id: u64, v: u16)

Source from the content-addressed store, hash-verified

126 use nodedb_cluster::{NodeInfo, NodeState};
127
128 fn node(id: u64, v: u16) -> NodeInfo {
129 NodeInfo::new(
130 id,
131 format!("10.0.0.{id}:9400").parse().unwrap(),
132 NodeState::Active,
133 )
134 .with_wire_version(v)
135 }
136
137 #[test]
138 fn empty_topology_falls_back_to_local() {

Callers 5

single_version_clusterFunction · 0.85
mixed_version_n_minus_1Function · 0.85
node_removal_recomputesFunction · 0.85

Calls 2

with_wire_versionMethod · 0.80
parseMethod · 0.45

Tested by 5

single_version_clusterFunction · 0.68
mixed_version_n_minus_1Function · 0.68
node_removal_recomputesFunction · 0.68