From 36e197e8f3af792536df3173cd2094418d62005b Mon Sep 17 00:00:00 2001 From: crStiv Date: Sat, 28 Dec 2024 13:26:14 +0100 Subject: [PATCH] Update lib.rs --- beacon_node/http_api/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/beacon_node/http_api/src/lib.rs b/beacon_node/http_api/src/lib.rs index fe05f55a01a..7e1fba73140 100644 --- a/beacon_node/http_api/src/lib.rs +++ b/beacon_node/http_api/src/lib.rs @@ -4039,9 +4039,10 @@ pub fn serve( .and(warp::path("health")) .and(warp::path::end()) .and(task_spawner_filter.clone()) - .then(|task_spawner: TaskSpawner| { + .and(client_config_filter.clone()) + .then(|task_spawner: TaskSpawner, config: Arc| { task_spawner.blocking_json_task(Priority::P0, move || { - eth2::lighthouse::Health::observe() + eth2::lighthouse::Health::observe(&config) .map(api_types::GenericResponse::from) .map_err(warp_utils::reject::custom_bad_request) })