Skip to content

Commit

Permalink
Remove healthcheck endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
junlarsen committed Apr 18, 2024
1 parent 50d643e commit 8be76e8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 87 deletions.
51 changes: 0 additions & 51 deletions 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 @@ -16,4 +16,3 @@ tungstenite = { version = "0.21.0", features = ["handshake", "native-tls"]}
uuid = { version = "1.7.0", features = ["v4", "serde"] }
rand = "0.8.5"
lazy_static = "1.4.0"
futures = "0.3.30"
23 changes: 0 additions & 23 deletions src/healthcheck.rs

This file was deleted.

15 changes: 3 additions & 12 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::healthcheck::start_http_server;
use crate::slack::start_websocket_client;

mod healthcheck;
use tracing_subscriber::layer::SubscriberExt;
use tracing_subscriber::util::SubscriberInitExt;
mod roulette;
mod slack;
mod slack_message;
Expand All @@ -12,13 +11,5 @@ async fn main() {
.with_max_level(tracing::Level::INFO)
.with_ansi(true)
.init();
let app_handle = tokio::spawn(async move {
start_websocket_client().await;
});
let http_handle = tokio::spawn(async move {
start_http_server()
.await
.expect("Failed to start HTTP server");
});
futures::future::join_all(vec![app_handle, http_handle]).await;
start_websocket_client().await;
}

0 comments on commit 8be76e8

Please sign in to comment.