utils(dirty): replace Notify with watch

This commit is contained in:
Luna Yao
2026-04-06 01:27:50 +02:00
parent a031b6f701
commit faa252fc39
4 changed files with 25 additions and 35 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ impl DnsNode {
last_heartbeat = Instant::now();
}
_ = self.mgr.dirty.notified() => {}
_ = self.mgr.dirty.wait() => {}
event = subscriber.recv() => {
match event {