make ctx.spawn blocking (#3337)

* make spawn sync

* improve error type
This commit is contained in:
Andronik Ordian
2021-06-22 03:43:40 +02:00
committed by GitHub
parent 9fa5d28e0b
commit ffc6f7c731
16 changed files with 27 additions and 80 deletions
@@ -107,7 +107,7 @@ async fn run(
let (mut validation_host, task) = polkadot_node_core_pvf::start(
polkadot_node_core_pvf::Config::new(cache_path, program_path),
);
ctx.spawn_blocking("pvf-validation-host", task.boxed()).await?;
ctx.spawn_blocking("pvf-validation-host", task.boxed())?;
loop {
match ctx.recv().await? {