Also replace HashMap with LinkedHashMap to keep service order
This commit is contained in:
@@ -19,7 +19,7 @@ struct Data {
|
||||
pub epoll: nix::sys::epoll::Epoll,
|
||||
pub sigfd: nix::sys::signalfd::SignalFd,
|
||||
pub work_queue: Option<std::sync::mpsc::Sender<WorkItem>>,
|
||||
pub services: std::collections::HashMap<u64, service::Service>
|
||||
pub services: linked_hash_map::LinkedHashMap<u64, service::Service>
|
||||
}
|
||||
impl Data {
|
||||
fn new() -> Self {
|
||||
@@ -35,7 +35,7 @@ impl Data {
|
||||
epoll,
|
||||
sigfd,
|
||||
work_queue: None,
|
||||
services: std::collections::HashMap::new()
|
||||
services: Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user