Fix busy loops. (#3392)

This commit is contained in:
Robert Klotzner
2021-07-01 08:44:13 +02:00
committed by GitHub
parent 0b10a24cd2
commit f293fb1025
2 changed files with 4 additions and 6 deletions
@@ -806,8 +806,8 @@ impl AvailabilityRecoverySubsystem {
}
}
}
output = state.interactions.next() => {
if let Some((candidate_hash, result)) = output.flatten() {
output = state.interactions.select_next_some() => {
if let Some((candidate_hash, result)) = output {
state.availability_lru.put(candidate_hash, result);
}
}