mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 18:55:32 +00:00
aquatic: add and use NetworkConfig.peer_announce_interval
This commit is contained in:
parent
ca9d15c7a9
commit
7239e9c047
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue