Skip to main content

find_node

Function find_node 

Source
pub async fn find_node(
    endpoint: &Endpoint,
    target: EndpointAddr,
    target_id: NodeId,
    requester: NodeId,
) -> Result<FindNodeResponse>
Expand description

Send a single FindNode request to target and return the response.

Used by the bootstrap path (FindNode(self.node_id) to seed the routing table) and by the bucket-refresh task (FindNode(random_id_in_bucket)).