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

@ -13,8 +13,7 @@ use hashbrown::HashMap;
use rand::{rngs::SmallRng, SeedableRng};
use aquatic_common::{
extract_response_peers, AmortizedIndexMap, IndexMap, PanicSentinel, SecondsSinceServerStart,
ServerStartInstant,
extract_response_peers, IndexMap, PanicSentinel, SecondsSinceServerStart, ServerStartInstant,
};
use aquatic_ws_protocol::*;
@ -87,7 +86,7 @@ impl TorrentData {
}
}
type TorrentMap = AmortizedIndexMap<InfoHash, TorrentData>;
type TorrentMap = IndexMap<InfoHash, TorrentData>;
#[derive(Default)]
struct TorrentMaps {