(&self, nodes: usize)
| 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(); |