Replace indexmap-amortized with plain (ahash) indexmap

This commit is contained in:
Joakim Frostegård 2023-02-25 22:37:54 +01:00
parent beb8c52fe6
commit b42d55b003
7 changed files with 11 additions and 50 deletions

View file

@ -1,8 +1,6 @@
use std::net::{Ipv4Addr, Ipv6Addr};
use aquatic_common::{
AmortizedIndexMap, IndexMap, SecondsSinceServerStart, ServerStartInstant, ValidUntil,
};
use aquatic_common::{IndexMap, SecondsSinceServerStart, ServerStartInstant, ValidUntil};
use aquatic_http_protocol::common::{AnnounceEvent, InfoHash, PeerId};
use aquatic_http_protocol::response::ResponsePeer;
@ -76,7 +74,7 @@ impl<I: Ip> Default for TorrentData<I> {
}
}
pub type TorrentMap<I> = AmortizedIndexMap<InfoHash, TorrentData<I>>;
pub type TorrentMap<I> = IndexMap<InfoHash, TorrentData<I>>;
#[derive(Default)]
pub struct TorrentMaps {