Skip to content

Commit

Permalink
fix: unwrap failed on fcu_resp (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 authored and forcodedancing committed Jun 25, 2024
1 parent 14ebc2c commit 8b125a8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion crates/bsc/consensus/src/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,14 @@ impl<Engine: EngineTypes + 'static> ParliaEngineTask<Engine> {
});
debug!(target: "consensus::parlia", ?state, "Sent fork choice update");

match rx.await.unwrap() {
let rx_result = match rx.await {
Ok(result) => result,
Err(err)=> {
error!(target: "consensus::parlia", ?err, "Fork choice update response failed");
continue
}
};
match rx_result {
Ok(fcu_response) => {
match fcu_response.forkchoice_status() {
ForkchoiceStatus::Valid => {
Expand Down

0 comments on commit 8b125a8

Please sign in to comment.