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
dbdd2450
Unverified
Commit
dbdd2450
authored
Mar 02, 2021
by
Bastian Köcher
Committed by
GitHub
Mar 02, 2021
Browse files
Initialize telemetry earlier (#2549)
This fixes a bug in block import not reporting to the telemetry.
parent
51655c3e
Pipeline
#126575
failed with stages
in 37 minutes and 54 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
node/service/src/lib.rs
View file @
dbdd2450
...
...
@@ -572,6 +572,9 @@ pub fn new_full<RuntimeApi, Executor>(
RuntimeApiCollection
<
StateBackend
=
sc_client_api
::
StateBackendFor
<
FullBackend
,
Block
>>
,
Executor
:
NativeExecutionDispatch
+
'static
,
{
let
telemetry_span
=
TelemetrySpan
::
new
();
let
_telemetry_span_entered
=
telemetry_span
.enter
();
let
role
=
config
.role
.clone
();
let
force_authoring
=
config
.force_authoring
;
let
backoff_authoring_blocks
=
...
...
@@ -662,9 +665,6 @@ pub fn new_full<RuntimeApi, Executor>(
cache_size
:
None
,
// default is fine.
};
let
telemetry_span
=
TelemetrySpan
::
new
();
let
_telemetry_span_entered
=
telemetry_span
.enter
();
let
(
rpc_handlers
,
telemetry_connection_notifier
)
=
service
::
spawn_tasks
(
service
::
SpawnTasksParams
{
config
,
backend
:
backend
.clone
(),
...
...
gabriel klawitter
🏄
@gabriel
mentioned in commit
d267a81a
·
Mar 03, 2021
mentioned in commit
d267a81a
mentioned in commit d267a81ab5e054c1dbf90b2164d6d43dc4fafa1b
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