Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ bytes = "1.4"
clokwerk = "0.4"
derive_more = { version = "1", features = ["full"] }
itertools = "0.14"
lazy_static = "1.4"
once_cell = "1.20"
rand = "0.8.5"
regex = "1.7.3"
Expand Down
5 changes: 2 additions & 3 deletions src/handlers/http/health_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ use actix_web::{
HttpResponse,
};
use http::StatusCode;
use once_cell::sync::Lazy;
use tokio::{sync::Mutex, task::JoinSet};
use tracing::{error, info, warn};

use crate::parseable::PARSEABLE;

// Create a global variable to store signal status
lazy_static::lazy_static! {
pub static ref SIGNAL_RECEIVED: Arc<Mutex<bool>> = Arc::new(Mutex::new(false));
}
static SIGNAL_RECEIVED: Lazy<Arc<Mutex<bool>>> = Lazy::new(|| Arc::new(Mutex::new(false)));

pub async fn liveness() -> HttpResponse {
HttpResponse::new(StatusCode::OK)
Expand Down
Loading