Function find_node

Source
pub async fn find_node(
    dht: &DHT,
    target: Id,
    timeout: Duration,
) -> Result<Vec<Node>, RustyDHTError>
Expand description

Use the DHT to find the closest nodes to the target as possible.

This runs until it stops making progress or timeout has elapsed.