make ctx.spawn blocking (#3337)

* make spawn sync

* improve error type
This commit is contained in:
Andronik Ordian authored and GitHub committed 2021-06-21 20:43:40 -05:00
1 parent 9fa5d28e0b
commit ffc6f7c731
16 files changed
+27 -80

No files matched your search

@@ -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? {