aquatic: add and use NetworkConfig.peer_announce_interval

This commit is contained in:
Joakim Frostegård 2020-04-08 21:30:57 +02:00
parent ca9d15c7a9
commit 7239e9c047
2 changed files with 3 additions and 1 deletions

View file

@ -115,7 +115,7 @@ pub fn handle_announce_requests(
let response = Response::Announce(AnnounceResponse {
transaction_id: request.transaction_id,
announce_interval: AnnounceInterval(600), // FIXME
announce_interval: AnnounceInterval(config.network.peer_announce_interval), // FIXME
leechers: NumberOfPeers(torrent_data.num_leechers.load(Ordering::SeqCst) as i32),
seeders: NumberOfPeers(torrent_data.num_seeders.load(Ordering::SeqCst) as i32),
peers: response_peers