mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-02 17:15:43 +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;
|
||||||
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>,
|
||||||
|
|||||||
Reference in New Issue
Block a user