mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
Use regular (ahash) IndexMap for PeerMaps
This commit is contained in:
parent
5f0971e952
commit
c76d7442e2
7 changed files with 16 additions and 8 deletions
|
|
@ -13,7 +13,7 @@ use hashbrown::HashMap;
|
|||
use rand::{rngs::SmallRng, SeedableRng};
|
||||
|
||||
use aquatic_common::{
|
||||
extract_response_peers, AmortizedIndexMap, PanicSentinel, SecondsSinceServerStart,
|
||||
extract_response_peers, AmortizedIndexMap, IndexMap, PanicSentinel, SecondsSinceServerStart,
|
||||
ServerStartInstant,
|
||||
};
|
||||
use aquatic_ws_protocol::*;
|
||||
|
|
@ -53,7 +53,7 @@ struct Peer {
|
|||
pub valid_until: ValidUntil,
|
||||
}
|
||||
|
||||
type PeerMap = AmortizedIndexMap<PeerId, Peer>;
|
||||
type PeerMap = IndexMap<PeerId, Peer>;
|
||||
|
||||
struct TorrentData {
|
||||
pub peers: PeerMap,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue