mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +00:00
aquatic: put max_scrape_torrents, max_response_peers in NetworkConfig
This commit is contained in:
parent
7239e9c047
commit
31c8864658
3 changed files with 6 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue