aquatic: put max_scrape_torrents, max_response_peers in NetworkConfig

This commit is contained in:
Joakim Frostegård 2020-04-08 21:32:05 +02:00
parent 7239e9c047
commit 31c8864658
3 changed files with 6 additions and 6 deletions

View file

@ -82,7 +82,7 @@ pub fn handle_announce_requests(
};
let max_num_peers_to_take = (request.peers_wanted.0.max(0) as usize)
.min(config.max_response_peers);
.min(config.network.max_response_peers);
// Since there is a miniscule risk of the torrent having been removed
// by now, don't unwrap the result.