Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
crStiv authored Dec 28, 2024
1 parent fe73927 commit 36e197e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions beacon_node/http_api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4039,9 +4039,10 @@ pub fn serve<T: BeaconChainTypes>(
.and(warp::path("health"))
.and(warp::path::end())
.and(task_spawner_filter.clone())
.then(|task_spawner: TaskSpawner<T::EthSpec>| {
.and(client_config_filter.clone())
.then(|task_spawner: TaskSpawner<T::EthSpec>, config: Arc<ClientConfig>| {
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)
})
Expand Down

0 comments on commit 36e197e

Please sign in to comment.