peer_mgr: remove Derivative

This commit is contained in:
Luna Yao
2026-02-20 22:17:47 +01:00
parent 9502a83143
commit fd39961567
+1 -3
View File
@@ -9,7 +9,6 @@ use crate::proto::dns::{DnsPeerManagerRpc, DnsPeerManagerRpcClientFactory, GetEx
use crate::proto::rpc_types;
use crate::proto::rpc_types::controller::BaseController;
use anyhow::Context;
use derivative::Derivative;
use derive_more::Deref;
use moka::future::Cache;
use std::sync::atomic::{AtomicBool, Ordering};
@@ -65,8 +64,7 @@ impl TryFrom<proto::dns::DnsSnapshot> for DnsSnapshot {
const DNS_PEER_TTL: Duration = Duration::from_secs(3);
#[derive(Derivative, Deref)]
#[derivative(Debug)]
#[derive(Debug, Deref)]
pub struct DnsPeerMgr {
#[deref]
mgr: Arc<PeerManager>,