Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Leshiy committed May 15, 2024
1 parent 539cd1f commit 8b78c9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions catalyst-gateway/bin/src/service/api/health/live_get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub(crate) fn set_live(flag: bool) {
/// Get the started flag
#[allow(dead_code)]
fn is_live() -> bool {
IS_LIVE.load(Ordering::Relaxed)
IS_LIVE.load(Ordering::Acquire)
}

/// Endpoint responses.
Expand Down Expand Up @@ -45,7 +45,7 @@ pub(crate) type AllResponses = WithErrorResponses<Responses>;
/// by an endpoint in a short window.
#[allow(clippy::unused_async)]
pub(crate) async fn endpoint() -> AllResponses {
if true {
if is_live() {
Responses::NoContent.into()
} else {
Responses::ServiceUnavailable.into()
Expand Down

0 comments on commit 8b78c9f

Please sign in to comment.