Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
3445eeba
Unverified
Commit
3445eeba
authored
Jul 01, 2021
by
Robert Klotzner
Committed by
GitHub
Jul 01, 2021
Browse files
Fix busy loops. (#3392)
parent
16f646dc
Pipeline
#145018
passed with stages
in 31 minutes and 58 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
node/network/availability-recovery/src/lib.rs
View file @
3445eeba
...
...
@@ -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
);
}
}
...
...
node/network/collator-protocol/src/validator_side/mod.rs
View file @
3445eeba
...
...
@@ -1138,12 +1138,10 @@ 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
{
res
=
state
.collation_fetches
.select_next_some
()
=>
{
handle_collation_fetched_result
(
&
mut
ctx
,
&
mut
state
,
res
)
.await
;
}
}
}
let
mut
retained_requested
=
HashSet
::
new
();
for
(
pending_collation
,
per_req
)
in
state
.requested_collations
.iter_mut
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment