http: index peer map by IP and port instead of IP and peer id

This commit is contained in:
Joakim Frostegård 2024-01-24 22:51:53 +01:00
parent 0286d25346
commit 63ae98f67c
3 changed files with 14 additions and 30 deletions

View file

@ -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,