Use regular (ahash) IndexMap for PeerMaps

This commit is contained in:
Joakim Frostegård 2022-08-06 16:50:56 +02:00
parent 5f0971e952
commit c76d7442e2
7 changed files with 16 additions and 8 deletions

View file

@ -2,6 +2,7 @@ use std::net::Ipv4Addr;
use std::net::Ipv6Addr;
use std::sync::Arc;
use aquatic_common::IndexMap;
use aquatic_common::SecondsSinceServerStart;
use aquatic_common::ServerStartInstant;
use aquatic_common::{
@ -35,7 +36,7 @@ impl<I: Ip> Peer<I> {
}
}
pub type PeerMap<I> = AmortizedIndexMap<PeerId, Peer<I>>;
pub type PeerMap<I> = IndexMap<PeerId, Peer<I>>;
pub struct TorrentData<I: Ip> {
peers: PeerMap<I>,