From 18e28197b8e275b6e7f1ce4733a435f7d299f830 Mon Sep 17 00:00:00 2001 From: Luna Yao <40349250+ZnqbuZ@users.noreply.github.com> Date: Mon, 23 Feb 2026 16:36:01 +0100 Subject: [PATCH] node: adjust field ordering --- easytier/src/dns/node.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()