test progress

This commit is contained in:
Eitan Seri-Levi
2025-02-06 13:38:33 +02:00
parent 7414f485a3
commit 51984ab54d
6 changed files with 37 additions and 13 deletions

View File

@@ -3592,9 +3592,7 @@ pub fn serve<T: BeaconChainTypes>(
task_spawner.spawn_async_with_rejection(Priority::P0, async move {
not_synced_filter?;
let current_slot = chain.slot().unwrap();
// TODO(focil) unwrap
// .map_err(warp_utils::reject::beacon_chain_error)?;
let current_slot = chain.slot().map_err(warp_utils::reject::unhandled_error)?;
// allow a tolerance of one slot to account for clock skew
//
@@ -3610,9 +3608,7 @@ pub fn serve<T: BeaconChainTypes>(
.produce_inclusion_list(query.slot)
.await
.map(api_types::GenericResponse::from)
// TODO(focil) unwrap
.unwrap();
// .map_err(warp_utils::reject::beacon_chain_error)?;
.map_err(warp_utils::reject::unhandled_error)?;
Ok::<_, warp::reject::Rejection>(warp::reply::json(&data).into_response())
})
},