mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 08:47:57 +00:00
Fix busy loops. (#3392)
This commit is contained in:
@@ -1138,10 +1138,8 @@ pub(crate) async fn run<Context>(
|
||||
_ = next_inactivity_stream.next() => {
|
||||
disconnect_inactive_peers(&mut ctx, &eviction_policy, &state.peer_data).await;
|
||||
}
|
||||
res = state.collation_fetches.next() => {
|
||||
if let Some(res) = res {
|
||||
handle_collation_fetched_result(&mut ctx, &mut state, res).await;
|
||||
}
|
||||
res = state.collation_fetches.select_next_some() => {
|
||||
handle_collation_fetched_result(&mut ctx, &mut state, res).await;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user