node: watch config/ip change

This commit is contained in:
Luna Yao
2026-02-22 02:33:10 +01:00
parent 5de87cd494
commit 9b372d3087
2 changed files with 60 additions and 4 deletions
+4
View File
@@ -24,6 +24,10 @@ impl DirtyFlag {
self.0.store(true, Ordering::Release);
}
pub fn peek(&self) -> bool {
self.0.load(Ordering::Acquire)
}
pub fn reset(&self) -> bool {
self.0.swap(false, Ordering::Acquire)
}