Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
083b14da
Commit
083b14da
authored
5 years ago
by
Pierre Krieger
Committed by
André Silva
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix infinite loop in telemetry (#3275)
parent
6815ce59
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/core/telemetry/src/worker/node.rs
+2
-2
2 additions, 2 deletions
substrate/core/telemetry/src/worker/node.rs
with
2 additions
and
2 deletions
substrate/core/telemetry/src/worker/node.rs
+
2
−
2
View file @
083b14da
...
...
@@ -112,7 +112,7 @@ where TTrans: Clone + Unpin, TTrans::Dial: Unpin,
let
mut
socket
=
mem
::
replace
(
&
mut
self
.socket
,
NodeSocket
::
Poisoned
);
self
.socket
=
loop
{
match
socket
{
NodeSocket
::
Connected
(
mut
conn
)
=>
NodeSocket
::
Connected
(
mut
conn
)
=>
match
NodeSocketConnected
::
poll
(
Pin
::
new
(
&
mut
conn
),
cx
,
&
self
.addr
)
{
Poll
::
Ready
(
Ok
(
v
))
=>
match
v
{}
Poll
::
Pending
=>
break
NodeSocket
::
Connected
(
conn
),
...
...
@@ -202,7 +202,7 @@ where TTrans::Output: Sink<BytesMut, Error = TSinkErr> + Unpin {
self
.need_flush
=
true
;
}
else
if
self
.need_flush
{
match
Sink
::
poll_flush
(
Pin
::
new
(
&
mut
self
.sink
),
cx
)
{
Poll
::
Pending
=>
{}
Poll
::
Pending
=>
return
Poll
::
Pending
,
Poll
::
Ready
(
Err
(
err
))
=>
return
Poll
::
Ready
(
Err
(
err
)),
Poll
::
Ready
(
Ok
(()))
=>
self
.need_flush
=
false
,
}
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment