mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-08 19:06:14 -08:00
client: fix atomic ordering
This commit is contained in:
1 parent
4a18a86ed6
commit
488dfaf233
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user