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

Method to_ready

nodedb-cluster/src/lifecycle_state.rs:152–155  ·  view source on GitHub ↗
(&self, nodes: usize)

Source from the content-addressed store, hash-verified

150 }
151
152 pub fn to_ready(&self, nodes: usize) {
153 let detail = format!("ready ({nodes} nodes)");
154 self.transition(ClusterLifecycleState::Ready { nodes }, &detail);
155 }
156
157 pub fn to_failed(&self, reason: impl Into<String>) {
158 let reason = reason.into();

Callers 8

bootstrapping_then_readyFunction · 0.80
restarting_pathFunction · 0.80
spawn_innerMethod · 0.80
spawn_one_calvin_nodeFunction · 0.80
spawn_protocol_listenersFunction · 0.80

Calls 1

transitionMethod · 0.80

Tested by 7

bootstrapping_then_readyFunction · 0.64
restarting_pathFunction · 0.64
spawn_innerMethod · 0.64
spawn_one_calvin_nodeFunction · 0.64