pub async fn remove_node(&self, id: NodeId) -> Option<(MemRaft, Arc<MemStore>)> {
        let mut rt = self.routing_table.write().await;
        let opt_handles = rt.remove(&id);
        let mut isolated = self.isolated_nodes.write().await;
        isolated.remove(&id);

        opt_handles
    }
/// Remove the target node from the routing table & isolation.
Remove the target node from the routing table & isolation.
Remove the target node from the routing table & isolation .
pub async fn remove_node(&self, id: NodeId) -> Option<(MemRaft, Arc<MemStore>)> {
        let mut rt = self.routing_table.write().await;
        let opt_handles = rt.remove(&id);
        let mut isolated = self.isolated_nodes.write().await;
        isolated.remove(&id);
        opt_handles
    }
pub async fn remove_node ( & self , id : NodeId ) -> Option < ( MemRaft , Arc < MemStore > ) > { let mut rt = self . routing_table . write ( ) . await ; let opt_handles = rt . remove ( & id ) ; let mut isolated = self . isolated_nodes . write ( ) . await ; isolated . remove ( & id ) ; opt_handles }
Remove the target node from the routing table & isolation.
Remove the target node from the routing table & isolation .
&self
id
NodeId
&self
id
NodeId