Sync node data to other nodes
(&self, node_id: NodeId, data: &NodeData)
| 532 | |
| 533 | /// Sync node data to other nodes |
| 534 | pub fn sync_node(&self, node_id: NodeId, data: &NodeData) -> Result<()> { |
| 535 | self.persistent |
| 536 | .write() |
| 537 | .put_encoded(keys::node_info(node_id), data) |
| 538 | } |
| 539 | |
| 540 | /// Load all nodes from sync store |
| 541 | pub fn load_all_nodes(&self) -> BTreeMap<NodeId, NodeData> { |
no test coverage detected