Skip to content

Commit

Permalink
fix: update slot
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Oct 7, 2024
1 parent 913d8b8 commit 56bd71d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bolt-boost/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ async fn get_header_with_proofs(
Path(params): Path<GetHeaderParams>,
req_headers: HeaderMap,
) -> Result<impl IntoResponse, PbsClientError> {
let slot_uuid = state.get_or_update_slot_uuid(params.slot);
let ms_into_slot = ms_into_slot(params.slot, state.config.chain);
let max_timeout_ms = state
.pbs_config()
Expand All @@ -188,8 +189,6 @@ async fn get_header_with_proofs(
return Ok(StatusCode::NO_CONTENT.into_response());
}

let (_, slot_uuid) = state.get_slot_and_uuid();

// prepare headers, except for start time which is set in `send_one_get_header`
let mut send_headers = HeaderMap::new();
// TODO: error handling
Expand Down

0 comments on commit 56bd71d

Please sign in to comment.