changed Client store from HashMap
to IndexMap
This commit is contained in:
parent
134e727b25
commit
f7189c72b2
|
@ -11,4 +11,5 @@ x11 = {version = "2.18.2", features = ["xlib"] }
|
|||
log = "0.4.13"
|
||||
simple_logger = "1.11.0"
|
||||
dirs = "3.0.2"
|
||||
log4rs = "1.0.0"
|
||||
log4rs = "1.0.0"
|
||||
indexmap = "1.6.2"
|
|
@ -3,6 +3,7 @@
|
|||
use std::num::NonZeroI32;
|
||||
use std::{collections::HashMap, ops::Rem, usize};
|
||||
|
||||
use indexmap::IndexMap;
|
||||
use log::{error, info};
|
||||
|
||||
use crate::util::BuildIdentityHasher;
|
||||
|
@ -178,7 +179,7 @@ mod tests {
|
|||
|
||||
use std::{collections::VecDeque, iter::repeat};
|
||||
|
||||
type Clients = HashMap<u64, Client, BuildIdentityHasher>;
|
||||
type Clients = IndexMap<u64, Client, BuildIdentityHasher>;
|
||||
type ClientRef = u64;
|
||||
type ClientRefs = Vec<ClientRef>;
|
||||
|
||||
|
|
Loading…
Reference in a new issue