1/n Add pause/start actions

This commit is contained in:
Igor Katson 2023-11-24 14:19:39 +00:00
parent afbf2a76b9
commit 0c4844f534
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
4 changed files with 50 additions and 12 deletions

View file

@ -690,7 +690,8 @@ impl Dht {
});
Ok(Dht { state })
}
pub async fn get_peers(
pub fn get_peers(
&self,
info_hash: Id20,
) -> anyhow::Result<impl Stream<Item = SocketAddr> + Unpin> {