client: remove DnsPeerMgrDirtyFlags

This commit is contained in:
Luna Yao
2026-04-06 11:54:01 +02:00
parent efcdf4c456
commit 474f1a3636
2 changed files with 3 additions and 8 deletions
+2 -7
View File
@@ -39,15 +39,10 @@ impl TryFrom<DnsExportConfig> for DnsPeerInfo {
const DNS_PEER_TTL: Duration = Duration::from_secs(3);
#[derive(Debug, Default)]
pub struct DnsPeerMgrDirtyFlags {
pub(crate) peers: DirtyFlag,
}
#[derive(Debug, Deref)]
pub struct DnsPeerMgr {
peers: Cache<PeerId, DnsPeerInfo>,
pub(super) dirty: DirtyState<DnsPeerMgrDirtyFlags>,
pub(super) dirty: DirtyState<DirtyFlag>,
#[deref]
mgr: Arc<PeerManager>,
@@ -92,7 +87,7 @@ impl DnsPeerMgr {
}
};
self.dirty.peers.mark();
self.dirty.mark();
match self.fetch(peer_id).await {
Ok(info) => {