mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-31 21:27:12 +00:00
test progress
This commit is contained in:
@@ -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())
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user