Can unpause dead no-peer-source torrent just fine

This commit is contained in:
Igor Katson 2025-01-13 17:41:42 +00:00
parent 6fea795899
commit c84e3ad90d
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
4 changed files with 19 additions and 38 deletions

View file

@ -1197,17 +1197,12 @@ impl DhtState {
.boxed()
}
#[inline(never)]
pub fn get_peers(
self: &Arc<Self>,
info_hash: Id20,
announce_port: Option<u16>,
) -> anyhow::Result<RequestPeersStream> {
Ok(RequestPeersStream::new(
self.clone(),
info_hash,
announce_port,
))
) -> RequestPeersStream {
RequestPeersStream::new(self.clone(), info_hash, announce_port)
}
pub fn listen_addr(&self) -> SocketAddr {