pub async fn get_peers(
dht: &DHT,
info_hash: Id,
timeout: Duration,
) -> Result<GetPeersResult, RustyDHTError>
Expand description
Use the DHT to retrieve peers for the given info_hash.
Returns the all the results so far after timeout
has elapsed
or the operation stops making progress (whichever happens first).