Move spawning tasks from thread pools to Service's TaskManager for block importing (#5647)

Co-Authored-By: Pierre Krieger <pierre.krieger1708@gmail.com>
This commit is contained in:
pscottandPierre Krieger authored and GitHub committed 2020-04-29 18:46:39 +02:00
1 parent bb94695a4e
commit 0f401e4699
22 files changed
+124 -107

No files matched your search

+1 -1
View File
@@ -63,7 +63,7 @@ where
network,
telemetry_endpoints: chain_spec.telemetry_endpoints().clone(),
chain_spec: Box::new(chain_spec),
task_executor: Arc::new(move |fut| wasm_bindgen_futures::spawn_local(fut)),
task_executor: Arc::new(move |fut, _| wasm_bindgen_futures::spawn_local(fut)),
telemetry_external_transport: Some(transport),
role: Role::Light,
database: {