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
+1 -1
View File
@@ -887,7 +887,7 @@ where
shared.clone(),
).remote_handle();
ctx.spawn("network-bridge-network-worker", Box::pin(remote)).await?;
ctx.spawn("network-bridge-network-worker", Box::pin(remote))?;
ctx.send_message(AllMessages::StatementDistribution(
StatementDistributionMessage::StatementFetchingReceiver(statement_receiver)