From cba1322bc5ba71aaf4c5d408433f4d7e741f4479 Mon Sep 17 00:00:00 2001 From: Yuri Rousseff <49888082+YuriRDev@users.noreply.github.com> Date: Tue, 23 Apr 2024 16:19:19 -0300 Subject: [PATCH] feat(deployer): Routes receiving state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Luiz Felipe Gonçalves <git@luizfelipe.dev> --- ctl/src/http/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ctl/src/http/mod.rs b/ctl/src/http/mod.rs index 3352678..2320e8c 100644 --- a/ctl/src/http/mod.rs +++ b/ctl/src/http/mod.rs @@ -11,8 +11,9 @@ pub async fn run_server(discovery_handle: DiscoveryHandle) { .route("/worker/metrics", post(worker::push_metrics)) .route( "/deploy", - post(deployer::deploy).with_state(discovery_handle), - ); + post(deployer::deploy), + ) + .with_state(discovery_handle); let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap(); info!("HTTP listening at port 3000");