mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-21 15:35:42 +00:00
Fix busy loops. (#3392)
This commit is contained in:
@@ -806,8 +806,8 @@ impl AvailabilityRecoverySubsystem {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
output = state.interactions.next() => {
|
output = state.interactions.select_next_some() => {
|
||||||
if let Some((candidate_hash, result)) = output.flatten() {
|
if let Some((candidate_hash, result)) = output {
|
||||||
state.availability_lru.put(candidate_hash, result);
|
state.availability_lru.put(candidate_hash, result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1138,10 +1138,8 @@ pub(crate) async fn run<Context>(
|
|||||||
_ = next_inactivity_stream.next() => {
|
_ = next_inactivity_stream.next() => {
|
||||||
disconnect_inactive_peers(&mut ctx, &eviction_policy, &state.peer_data).await;
|
disconnect_inactive_peers(&mut ctx, &eviction_policy, &state.peer_data).await;
|
||||||
}
|
}
|
||||||
res = state.collation_fetches.next() => {
|
res = state.collation_fetches.select_next_some() => {
|
||||||
if let Some(res) = res {
|
handle_collation_fetched_result(&mut ctx, &mut state, res).await;
|
||||||
handle_collation_fetched_result(&mut ctx, &mut state, res).await;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user