mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-08-06 20:49:46 +00:00
client: fix atomic ordering
This commit is contained in:
@@ -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