mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-08-07 04:59:49 +00:00
peer_mgr: remove Derivative
This commit is contained in:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user