mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-02 17:15:43 +00:00
node: adjust field ordering
This commit is contained in:
@@ -15,17 +15,18 @@ use tokio::sync::{broadcast, Notify};
|
|||||||
use tokio::task::JoinSet;
|
use tokio::task::JoinSet;
|
||||||
use tokio::time::{sleep, sleep_until, Instant};
|
use tokio::time::{sleep, sleep_until, Instant};
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
use crate::instance::instance::ArcNicCtx;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct DnsNode {
|
pub struct DnsNode {
|
||||||
mgr: Arc<DnsPeerMgr>,
|
mgr: Arc<DnsPeerMgr>,
|
||||||
|
|
||||||
global_ctx: ArcGlobalCtx,
|
|
||||||
peer_mgr: Arc<PeerManager>,
|
peer_mgr: Arc<PeerManager>,
|
||||||
|
global_ctx: ArcGlobalCtx,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl DnsNode {
|
impl DnsNode {
|
||||||
pub fn new(global_ctx: ArcGlobalCtx, peer_mgr: Arc<PeerManager>) -> Self {
|
pub fn new(peer_mgr: Arc<PeerManager>, global_ctx: ArcGlobalCtx) -> Self {
|
||||||
let mgr = Arc::new(DnsPeerMgr::new(peer_mgr.clone()));
|
let mgr = Arc::new(DnsPeerMgr::new(peer_mgr.clone()));
|
||||||
peer_mgr
|
peer_mgr
|
||||||
.get_peer_rpc_mgr()
|
.get_peer_rpc_mgr()
|
||||||
|
|||||||
Reference in New Issue
Block a user