mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
aquatic_http: replace flume with crossbeam; clean connections less often
This commit is contained in:
parent
3802dec79e
commit
228511b3aa
6 changed files with 15 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue