mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-26 05:35:03 +00:00
Add diagnostics to tasks (#4752)
This commit is contained in:
1 parent
34c1c4b954
commit
b452867eb7
10 files changed
+117
-52
No files matched your search
@@ -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