From 1986fd7f240fb80fab8a7e5261e6bf355e639e4f Mon Sep 17 00:00:00 2001 From: Mr-Leshiy Date: Wed, 15 May 2024 17:48:42 +0300 Subject: [PATCH] fix --- catalyst-gateway/bin/src/service/api/health/live_get.rs | 2 +- catalyst-gateway/bin/src/service/api/health/started_get.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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.