mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 09:45:31 +00:00
http: index peer map by IP and port instead of IP and peer id
This commit is contained in:
parent
0286d25346
commit
63ae98f67c
3 changed files with 14 additions and 30 deletions
|
|
@ -8,7 +8,7 @@ use std::collections::BTreeMap;
|
|||
use super::common::*;
|
||||
use super::utils::*;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize, Hash)]
|
||||
pub struct ResponsePeer<I: Eq> {
|
||||
pub ip_address: I,
|
||||
pub port: u16,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue