Load all node statuses
(&self)
| 569 | |
| 570 | /// Load all node statuses |
| 571 | pub fn load_all_node_statuses(&self) -> BTreeMap<NodeId, NodeStatus> { |
| 572 | self.persistent |
| 573 | .read() |
| 574 | .iter_decoded(keys::NODE_STATUS_PREFIX) |
| 575 | .filter_map(|(key, status)| { |
| 576 | let node_id: NodeId = key.strip_prefix(keys::NODE_STATUS_PREFIX)?.parse().ok()?; |
| 577 | Some((node_id, status)) |
| 578 | }) |
| 579 | .collect() |
| 580 | } |
| 581 | |
| 582 | // ==================== Connection Count Sync ==================== |
| 583 |
no test coverage detected