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
58e46aad
Commit
58e46aad
authored
Nov 24, 2020
by
Peter Goodspeed-Niklaus
Browse files
REVERT ME: log when send_msg sends a message to a job
parent
0d6f3841
Pipeline
#114922
failed with stages
in 23 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
node/subsystem-util/src/lib.rs
View file @
58e46aad
...
...
@@ -632,6 +632,7 @@ impl<Spawner: SpawnNamed, Job: 'static + JobTrait> Jobs<Spawner, Job> {
/// Send a message to the appropriate job for this `parent_hash`.
async
fn
send_msg
(
&
mut
self
,
parent_hash
:
Hash
,
msg
:
Job
::
ToJob
)
{
if
let
Entry
::
Occupied
(
mut
job
)
=
self
.running
.entry
(
parent_hash
)
{
tracing
::
info!
(
job
=
Job
::
NAME
,
relay_parent
=
?
parent_hash
,
"send_msg sending message"
);
if
job
.get_mut
()
.send_msg
(
msg
)
.await
.is_err
()
{
tracing
::
debug!
(
job
=
Job
::
NAME
,
"failed to send message to job, will remove it"
);
job
.remove
();
...
...
gabriel klawitter
🏄
@gabriel
mentioned in commit
2b4cf2cb
·
Nov 26, 2020
mentioned in commit
2b4cf2cb
mentioned in commit 2b4cf2cbdbb8d2c7088510615bb5d5b8505050ce
Toggle commit list
gabriel klawitter
🏄
@gabriel
mentioned in commit
113ae827
·
Dec 04, 2020
mentioned in commit
113ae827
mentioned in commit 113ae8272ecf2133272b9373123ffb4f74a00425
Toggle commit list
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