Simplify the trait for tracker comms

This commit is contained in:
Igor Katson 2024-02-26 09:47:46 +00:00
parent b30ee13388
commit 70c59834ba
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 28 additions and 28 deletions

View file

@ -41,7 +41,7 @@ use crate::{
torrent_state::{
ManagedTorrentBuilder, ManagedTorrentHandle, ManagedTorrentState, TorrentStateLive,
},
tracker_comms::{self, TrackerComms},
tracker_comms::TrackerComms,
type_aliases::PeerStream,
};
@ -1093,7 +1093,7 @@ impl Session {
self.peer_id,
trackers,
// TODO: report actual bytes, not zeroes.
Box::new(tracker_comms::TorrentStatsForTrackerDummy {}),
Box::new(()),
force_tracker_interval,
cancel,
announce_port,