diff --git a/easytier/src/dns/node.rs b/easytier/src/dns/node.rs index 8eec6b22..f480da29 100644 --- a/easytier/src/dns/node.rs +++ b/easytier/src/dns/node.rs @@ -15,17 +15,18 @@ use tokio::sync::{broadcast, Notify}; use tokio::task::JoinSet; use tokio::time::{sleep, sleep_until, Instant}; use uuid::Uuid; +use crate::instance::instance::ArcNicCtx; #[derive(Debug)] pub struct DnsNode { mgr: Arc, - global_ctx: ArcGlobalCtx, peer_mgr: Arc, + global_ctx: ArcGlobalCtx, } impl DnsNode { - pub fn new(global_ctx: ArcGlobalCtx, peer_mgr: Arc) -> Self { + pub fn new(peer_mgr: Arc, global_ctx: ArcGlobalCtx) -> Self { let mgr = Arc::new(DnsPeerMgr::new(peer_mgr.clone())); peer_mgr .get_peer_rpc_mgr()