aquatic_http: replace flume with crossbeam; clean connections less often

This commit is contained in:
Joakim Frostegård 2020-07-24 20:36:46 +02:00
parent 3802dec79e
commit 228511b3aa
6 changed files with 15 additions and 13 deletions

View file

@ -15,7 +15,6 @@ use crate::common::*;
use crate::config::Config;
pub fn run_request_worker(
config: Config,
state: State,
@ -101,6 +100,8 @@ pub fn handle_announce_requests(
request_sender_meta.peer_addr.ip()
);
::log::debug!("peer ip: {:?}", peer_ip);
let response = match peer_ip {
IpAddr::V4(peer_ip_address) => {
let torrent_data: &mut TorrentData<Ipv4Addr> = torrent_maps.ipv4