pub async fn current_leader(&self, target: NodeId) -> Option<NodeId> {
        let rt = self.routing_table.read().await;
        let node = rt.get(&target).unwrap_or_else(|| panic!("node with ID {} does not exist", target));
        node.0.current_leader().await
    }
/// Request the current leader from the target node.
Request the current leader from the target node.
Request the current leader from the target node .
pub async fn current_leader(&self, target: NodeId) -> Option<NodeId> {
        let rt = self.routing_table.read().await;
        let node = rt.get(&target).unwrap_or_else(|| panic!("node with ID {} does not exist", target));
        node.0.current_leader().await
    }
pub async fn current_leader ( & self , target : NodeId ) -> Option < NodeId > { let rt = self . routing_table . read ( ) . await ; let node = rt . get ( & target ) . unwrap_or_else ( | | panic ! ( " " target ) ) ; node . 0 . current_leader ( ) . await }
Request the current leader from the target node.
Request the current leader from the target node .
&self
target
NodeId
&self
target
NodeId