utils: add DirtyState

This commit is contained in:
Luna Yao
2026-02-21 23:24:17 +01:00
parent e9a0e4f042
commit efcdf4c456
5 changed files with 34 additions and 29 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ impl DnsClient {
..Default::default()
};
loop {
self.mgr.dirty.notified().await;
self.mgr.dirty.notify.notified().await;
if let Err(e) = self.heartbeat(&mut rpc, &mut heartbeat).await {
tracing::error!("DnsClient heartbeat failed: {:?}", e);
}