Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update client/pov-recovery/src/active_candidate_recovery.rs
Co-authored-by: Bernhard Schuster <[email protected]>
  • Loading branch information
bkchr and drahnr authored May 20, 2021
commit ed2a696e1f1002b89b615b4acedc6102e0bed67b
6 changes: 3 additions & 3 deletions client/pov-recovery/src/active_candidate_recovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ impl<Block: BlockT> ActiveCandidateRecovery<Block> {
/// If the returned [`AvailableData`] is `None`, it means that the recovery failed.
pub async fn wait_for_recovery(&mut self) -> (Block::Hash, Option<AvailableData>) {
loop {
if self.recoveries.is_empty() {
futures::pending!()
} else if let Some(res) = self.recoveries.next().await {
if let Some(res) = self.recoveries.next().await {
self.candidates.remove(&res.0);
return res;
} else {
futures::pending!()
}
}
}
Expand Down