From 40d3e48cc47d98486e2f4f0ad5caee6c2ed5dcda Mon Sep 17 00:00:00 2001 From: Luna Yao <40349250+ZnqbuZ@users.noreply.github.com> Date: Tue, 28 Apr 2026 05:20:53 +0200 Subject: [PATCH] remove redundant heartbeat log --- easytier/src/dns/config/mod.rs | 2 +- easytier/src/dns/node.rs | 1 - easytier/src/dns/node_mgr.rs | 7 ------- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/easytier/src/dns/config/mod.rs b/easytier/src/dns/config/mod.rs index 63b7736f..f0bfde4f 100644 --- a/easytier/src/dns/config/mod.rs +++ b/easytier/src/dns/config/mod.rs @@ -21,6 +21,6 @@ pub static DNS_SERVER_RPC_ADDR: LazyLock = pub const DNS_NODE_TTI: Duration = Duration::from_secs(5); -pub const DNS_NODE_RR_INTERVAL: Duration = Duration::from_secs(1); +pub const DNS_NODE_RR_INTERVAL: Duration = Duration::from_secs(4); pub const DNS_SERVER_ELECTION_INTERVAL: Duration = Duration::from_secs(5); pub const DNS_PEER_TTI: Duration = Duration::from_secs(3); diff --git a/easytier/src/dns/node.rs b/easytier/src/dns/node.rs index 52310548..ee753220 100644 --- a/easytier/src/dns/node.rs +++ b/easytier/src/dns/node.rs @@ -184,7 +184,6 @@ impl DnsNodeRuntime { .scoped_client::>("".to_string()) .await?; - tracing::trace!(?request, "sending heartbeat"); let response = client.heartbeat(BaseController::default(), request).await?; if response.resync { tracing::trace!("resync requested by server, sending full snapshot"); diff --git a/easytier/src/dns/node_mgr.rs b/easytier/src/dns/node_mgr.rs index 8fdf6e30..8b2599f6 100644 --- a/easytier/src/dns/node_mgr.rs +++ b/easytier/src/dns/node_mgr.rs @@ -12,7 +12,6 @@ use hickory_server::zone_handler::Catalog; use itertools::Itertools; use moka::future::Cache; use std::collections::HashSet; -use tracing::instrument; use uuid::Uuid; #[derive(Debug, Clone, Default)] @@ -127,12 +126,6 @@ impl DnsNodeMgr { impl DnsNodeMgrRpc for DnsNodeMgr { type Controller = BaseController; - #[instrument( - level = "trace", - skip_all, - fields(from = ?input.id, snapshot = ?input.snapshot), - err - )] async fn heartbeat( &self, _: BaseController,