mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 21:01:05 +00:00
Add diagnostics to tasks (#4752)
This commit is contained in:
@@ -14,6 +14,7 @@ sp-inherents = { version = "2.0.0", path = "../../inherents" }
|
||||
sp-state-machine = { version = "0.8.0", path = "../../../primitives/state-machine" }
|
||||
futures = { version = "0.3.1", features = ["thread-pool"] }
|
||||
futures-timer = "0.4.0"
|
||||
futures-diagnose = "1.0"
|
||||
sp-std = { version = "2.0.0", path = "../../std" }
|
||||
sp-version = { version = "2.0.0", path = "../../version" }
|
||||
sp-runtime = { version = "2.0.0", path = "../../runtime" }
|
||||
|
||||
@@ -71,7 +71,7 @@ impl<B: BlockT, Transaction: Send + 'static> BasicQueue<B, Transaction> {
|
||||
|
||||
let manual_poll;
|
||||
if let Some(pool) = &mut pool {
|
||||
pool.spawn_ok(future);
|
||||
pool.spawn_ok(futures_diagnose::diagnose("import-queue", future));
|
||||
manual_poll = None;
|
||||
} else {
|
||||
manual_poll = Some(Box::pin(future) as Pin<Box<_>>);
|
||||
|
||||
Reference in New Issue
Block a user