From 5c03249bdafdd7a37fdd8cc49c7b2b674add7128 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Mon, 16 Jan 2023 16:56:40 -0800 Subject: [PATCH] fix accidental merge. moved to a branch --- web3_proxy/src/bin/web3_proxy.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web3_proxy/src/bin/web3_proxy.rs b/web3_proxy/src/bin/web3_proxy.rs index fe4b92df..656fdce4 100644 --- a/web3_proxy/src/bin/web3_proxy.rs +++ b/web3_proxy/src/bin/web3_proxy.rs @@ -93,7 +93,10 @@ fn run( tokio::spawn(frontend::serve(app_frontend_port, spawned_app.app.clone())); // TODO: should we put this in a dedicated thread? - let prometheus_handle = tokio::spawn(metrics_frontend::serve(app_prometheus_port)); + let prometheus_handle = tokio::spawn(metrics_frontend::serve( + spawned_app.app.clone(), + app_prometheus_port, + )); // if everything is working, these should both run forever tokio::select! {