diff --git a/catalyst-gateway/bin/src/service/api/health/live_get.rs b/catalyst-gateway/bin/src/service/api/health/live_get.rs index 15707dd348..3acf18bf27 100644 --- a/catalyst-gateway/bin/src/service/api/health/live_get.rs +++ b/catalyst-gateway/bin/src/service/api/health/live_get.rs @@ -12,7 +12,7 @@ static IS_LIVE: AtomicBool = AtomicBool::new(true); /// Set the started flag to `true` #[allow(dead_code)] pub(crate) fn set_live(flag: bool) { - IS_LIVE.store(flag, Ordering::Relaxed); + IS_LIVE.store(flag, Ordering::Release); } /// Get the started flag #[allow(dead_code)] diff --git a/catalyst-gateway/bin/src/service/api/health/started_get.rs b/catalyst-gateway/bin/src/service/api/health/started_get.rs index 38c106da8d..c2a990a584 100644 --- a/catalyst-gateway/bin/src/service/api/health/started_get.rs +++ b/catalyst-gateway/bin/src/service/api/health/started_get.rs @@ -11,11 +11,11 @@ static IS_STARTED: AtomicBool = AtomicBool::new(false); /// Set the started flag to `true` pub(crate) fn started() { - IS_STARTED.store(true, Ordering::Relaxed); + IS_STARTED.store(true, Ordering::Release); } /// Get the started flag fn is_started() -> bool { - IS_STARTED.load(Ordering::Relaxed) + IS_STARTED.load(Ordering::Acquire) } /// Endpoint responses.