mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 10:15:31 +00:00
aquatic_common: extract response peers: don't return sender
Seems to fix or at least help with some issues with real clients being slow to initiate transfers
This commit is contained in:
parent
b5452c2954
commit
6ee8ed4895
6 changed files with 89 additions and 70 deletions
|
|
@ -21,7 +21,7 @@ pub const LISTENER_TOKEN: Token = Token(0);
|
|||
pub const CHANNEL_TOKEN: Token = Token(1);
|
||||
|
||||
|
||||
pub trait Ip: Copy + Eq + ::std::hash::Hash {}
|
||||
pub trait Ip: ::std::fmt::Debug + Copy + Eq + ::std::hash::Hash {}
|
||||
|
||||
impl Ip for Ipv4Addr {}
|
||||
impl Ip for Ipv6Addr {}
|
||||
|
|
@ -73,7 +73,7 @@ impl PeerStatus {
|
|||
}
|
||||
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct Peer<I: Ip> {
|
||||
pub connection_meta: PeerConnectionMeta<I>,
|
||||
pub port: u16,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue