Set node status (stored separately from NodeData)
(&self, node_id: NodeId, status: NodeStatus)
| 553 | |
| 554 | /// Set node status (stored separately from NodeData) |
| 555 | pub fn set_node_status(&self, node_id: NodeId, status: NodeStatus) -> Result<()> { |
| 556 | self.persistent |
| 557 | .write() |
| 558 | .put_encoded(keys::node_status(node_id), &status)?; |
| 559 | Ok(()) |
| 560 | } |
| 561 | |
| 562 | /// Get node status |
| 563 | pub fn get_node_status(&self, node_id: NodeId) -> NodeStatus { |
no test coverage detected