mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
common: rename AHashIndexMap to AmortizedIndexMap
This commit is contained in:
parent
9e49cb0bca
commit
5176b18ef9
5 changed files with 15 additions and 14 deletions
|
|
@ -12,7 +12,7 @@ use glommio::timer::TimerActionRepeat;
|
|||
use hashbrown::HashMap;
|
||||
use rand::{rngs::SmallRng, SeedableRng};
|
||||
|
||||
use aquatic_common::{extract_response_peers, AHashIndexMap};
|
||||
use aquatic_common::{extract_response_peers, AmortizedIndexMap};
|
||||
use aquatic_ws_protocol::*;
|
||||
|
||||
use crate::common::*;
|
||||
|
|
@ -49,7 +49,7 @@ struct Peer {
|
|||
pub valid_until: ValidUntil,
|
||||
}
|
||||
|
||||
type PeerMap = AHashIndexMap<PeerId, Peer>;
|
||||
type PeerMap = AmortizedIndexMap<PeerId, Peer>;
|
||||
|
||||
struct TorrentData {
|
||||
pub peers: PeerMap,
|
||||
|
|
@ -68,7 +68,7 @@ impl Default for TorrentData {
|
|||
}
|
||||
}
|
||||
|
||||
type TorrentMap = AHashIndexMap<InfoHash, TorrentData>;
|
||||
type TorrentMap = AmortizedIndexMap<InfoHash, TorrentData>;
|
||||
|
||||
#[derive(Default)]
|
||||
struct TorrentMaps {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue