From 6a2412f5dd94fb351c793a05a1e2b5cd25879ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Thu, 12 Nov 2020 10:46:08 +0000 Subject: [PATCH] Spawning rocket as a blocking task (#440) --- explorer/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/explorer/src/main.rs b/explorer/src/main.rs index 22ca829ed1..9997722455 100644 --- a/explorer/src/main.rs +++ b/explorer/src/main.rs @@ -37,7 +37,7 @@ async fn main() { let matches = parse_args(); let validator_base_url = matches.value_of(VALIDATOR_ARG).unwrap(); - tokio::spawn(async move { + tokio::task::spawn_blocking(|| { rocket::ignite() .mount("/", StaticFiles::from("public")) .launch()