Remove unused field

This commit is contained in:
Igor Katson 2024-02-26 08:55:53 +00:00
parent 3a7207265f
commit 51dba8ab67
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 2 additions and 12 deletions

View file

@ -972,7 +972,6 @@ impl Session {
builder
.overwrite(opts.overwrite)
.spawner(self.spawner)
.cancellation_token(cancellation_token.clone())
.trackers(trackers)
.peer_id(self.peer_id);
@ -1101,7 +1100,7 @@ impl Session {
}
pub fn unpause(&self, handle: &ManagedTorrentHandle) -> anyhow::Result<()> {
let token = handle.cancellation_token.child_token();
let token = self.cancellation_token.child_token();
let peer_rx = self.make_peer_rx(
handle.info_hash(),
handle.info().trackers.clone().into_iter().collect(),