mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 10:45:30 +00:00
aquatic_http: improve mio and common request handling code
This commit is contained in:
parent
ea2366c808
commit
4fc1509a79
2 changed files with 13 additions and 7 deletions
|
|
@ -171,7 +171,8 @@ pub fn upsert_peer_and_get_response_peers<I: Ip>(
|
|||
pub fn handle_scrape_request(
|
||||
config: &Config,
|
||||
torrent_maps: &mut TorrentMaps,
|
||||
(meta, request): (ConnectionMeta, ScrapeRequest),
|
||||
meta: ConnectionMeta,
|
||||
request: ScrapeRequest,
|
||||
) -> ScrapeResponse {
|
||||
let num_to_take = request
|
||||
.info_hashes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue