mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 20:27:58 +00:00
Add spawn_blocking to SubsystemContext (#1570)
* subsystem: add spawn_blocking to SubsystemContext * candidate-validation: use spawn_blocking for exhaustive tasks
This commit is contained in:
@@ -318,7 +318,7 @@ async fn spawn_validate_exhaustive(
|
||||
let _ = tx.send(res);
|
||||
};
|
||||
|
||||
ctx.spawn("blocking-candidate-validation-task", fut.boxed()).await?;
|
||||
ctx.spawn_blocking("blocking-candidate-validation-task", fut.boxed()).await?;
|
||||
rx.await.map_err(Into::into)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user