Fix unpause

This commit is contained in:
Igor Katson 2024-02-17 21:13:57 +00:00
parent 95769cca6a
commit 1582d16cc5
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 25 additions and 11 deletions

View file

@ -84,7 +84,7 @@ pub struct ManagedTorrentInfo {
pub info_hash: Id20,
pub out_dir: PathBuf,
pub(crate) spawner: BlockingSpawner,
pub trackers: HashSet<Url>,
pub trackers: HashSet<String>,
pub peer_id: Id20,
pub lengths: Lengths,
pub span: tracing::Span,
@ -422,7 +422,7 @@ pub struct ManagedTorrentBuilder {
peer_connect_timeout: Option<Duration>,
peer_read_write_timeout: Option<Duration>,
only_files: Option<Vec<usize>>,
trackers: Vec<Url>,
trackers: Vec<String>,
peer_id: Option<Id20>,
overwrite: bool,
spawner: Option<BlockingSpawner>,
@ -461,7 +461,7 @@ impl ManagedTorrentBuilder {
self
}
pub fn trackers(&mut self, trackers: Vec<Url>) -> &mut Self {
pub fn trackers(&mut self, trackers: Vec<String>) -> &mut Self {
self.trackers = trackers;
self
}