client: fix atomic ordering

This commit is contained in:
Luna Yao
2026-02-21 02:44:41 +01:00
parent 4a18a86ed6
commit 488dfaf233
+1 -1
View File
@@ -62,7 +62,7 @@ impl DnsClient {
heartbeat: &mut HeartbeatRequest,
) -> anyhow::Result<()> {
let request =
if heartbeat.snapshot.is_none() || self.mgr.dirty.swap(false, Ordering::Release) {
if heartbeat.snapshot.is_none() || self.mgr.dirty.swap(false, Ordering::Acquire) {
heartbeat.update(self.mgr.snapshot());
heartbeat.clone().into()
} else {