From af71dd334ea85b704dfa792c22dcfae133a2f2dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ege=20Okan=20=C3=9Cnald=C4=B1?= <35339130+exeokan@users.noreply.github.com> Date: Thu, 19 Sep 2024 16:45:10 +0300 Subject: [PATCH] disable healthcheck (#1205) --- crates/prover/src/runner.rs | 5 ++--- crates/sequencer/src/sequencer.rs | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/crates/prover/src/runner.rs b/crates/prover/src/runner.rs index f046029ea..293fc5d9b 100644 --- a/crates/prover/src/runner.rs +++ b/crates/prover/src/runner.rs @@ -180,9 +180,8 @@ where let max_response_body_size = self.rpc_config.max_response_body_size; let batch_requests_limit = self.rpc_config.batch_requests_limit; - let middleware = tower::ServiceBuilder::new() - .layer(citrea_common::rpc::get_cors_layer()) - .layer(citrea_common::rpc::get_healthcheck_proxy_layer()); + let middleware = tower::ServiceBuilder::new().layer(citrea_common::rpc::get_cors_layer()); + // .layer(citrea_common::rpc::get_healthcheck_proxy_layer()); let _handle = tokio::spawn(async move { let server = ServerBuilder::default() diff --git a/crates/sequencer/src/sequencer.rs b/crates/sequencer/src/sequencer.rs index 50ec1a09b..ed5936516 100644 --- a/crates/sequencer/src/sequencer.rs +++ b/crates/sequencer/src/sequencer.rs @@ -210,9 +210,8 @@ where let max_response_body_size = self.rpc_config.max_response_body_size; let batch_requests_limit = self.rpc_config.batch_requests_limit; - let middleware = tower::ServiceBuilder::new() - .layer(citrea_common::rpc::get_cors_layer()) - .layer(citrea_common::rpc::get_healthcheck_proxy_layer()); + let middleware = tower::ServiceBuilder::new().layer(citrea_common::rpc::get_cors_layer()); + // .layer(citrea_common::rpc::get_healthcheck_proxy_layer()); let _handle = tokio::spawn(async move { let server = ServerBuilder::default()