peer_mgr: remove Derivative

This commit is contained in:
Luna Yao
2026-04-06 11:54:01 +02: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;
use crate::proto::rpc_types::controller::BaseController; use crate::proto::rpc_types::controller::BaseController;
use anyhow::Context; use anyhow::Context;
use derivative::Derivative;
use derive_more::Deref; use derive_more::Deref;
use moka::future::Cache; use moka::future::Cache;
use std::sync::atomic::{AtomicBool, Ordering}; 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); const DNS_PEER_TTL: Duration = Duration::from_secs(3);
#[derive(Derivative, Deref)] #[derive(Debug, Deref)]
#[derivative(Debug)]
pub struct DnsPeerMgr { pub struct DnsPeerMgr {
#[deref] #[deref]
mgr: Arc<PeerManager>, mgr: Arc<PeerManager>,