Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Leshiy committed May 15, 2024
1 parent 8b78c9f commit 1986fd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion catalyst-gateway/bin/src/service/api/health/live_get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
4 changes: 2 additions & 2 deletions catalyst-gateway/bin/src/service/api/health/started_get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1986fd7

Please sign in to comment.