Skip to content

Commit

Permalink
fixup! [pipeline] fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zekun Li authored and Zekun Li committed Dec 5, 2024
1 parent 0f5999f commit 10faa3e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions consensus/consensus-types/src/pipelined_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,12 +479,11 @@ impl PipelinedBlock {
}

pub async fn wait_for_commit_ledger(&self) {
// this may be cancelled
let _ = self
.pipeline_futs()
.expect("Pipeline needs to be enabled")
.commit_ledger_fut
.await;
// may be aborted (e.g. by reset)
if let Some(fut) = self.pipeline_futs() {
// this may be cancelled
let _ = fut.commit_ledger_fut.await;
}
}
}

Expand Down

0 comments on commit 10faa3e

Please sign in to comment.