Fix busy loops. (#3392)

This commit is contained in:
Robert Klotzner authored and GitHub committed 2021-07-01 08:44:13 +02:00
1 parent 0b10a24cd2
commit f293fb1025
2 files changed
+4 -6

No files matched your search

@@ -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);
}
}