Fix magnet links

This commit is contained in:
Igor Katson 2024-05-17 23:57:25 +01:00
parent b687a1882c
commit f63e729da1
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
3 changed files with 14 additions and 7 deletions

View file

@ -4,7 +4,7 @@ use anyhow::Context;
use buffers::ByteBufOwned;
use futures::{stream::FuturesUnordered, Stream, StreamExt};
use librqbit_core::torrent_metainfo::TorrentMetaV1Info;
use tracing::debug;
use tracing::{debug, error_span, Instrument};
use crate::{
peer_connection::PeerConnectionOptions, peer_info_reader, spawn_utils::BlockingSpawner,
@ -46,6 +46,7 @@ pub async fn read_metainfo_from_peer_receiver<A: Stream<Item = SocketAddr> + Unp
peer_connection_options,
BlockingSpawner::new(true),
)
.instrument(error_span!("read_metainfo_from_peer", ?addr))
.await
.with_context(|| format!("error reading metainfo from {addr}"));
drop(token);