aquatic_udp: move some config vars to new substruct, ProtocolConfig

This commit is contained in:
Joakim Frostegård 2020-05-25 18:04:47 +02:00
parent 5af9ae4ede
commit 840f67fc8d
4 changed files with 32 additions and 14 deletions

View file

@ -141,7 +141,7 @@ fn read_requests(
Ok((amt, src)) => {
let request = request_from_bytes(
&buffer[..amt],
config.network.max_scrape_torrents
config.protocol.max_scrape_torrents
);
bytes_received += amt;