From b5ddd993bc7267746966a45ec5f740cbf894950d Mon Sep 17 00:00:00 2001 From: Nasr Date: Thu, 17 Oct 2024 10:16:31 -0400 Subject: [PATCH] fmt --- bin/torii/src/main.rs | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/bin/torii/src/main.rs b/bin/torii/src/main.rs index 557067ad58..456d17b9e3 100644 --- a/bin/torii/src/main.rs +++ b/bin/torii/src/main.rs @@ -308,25 +308,12 @@ async fn main() -> anyhow::Result<()> { .await?; } - let engine_handle = tokio::spawn(async move { - engine.start().await - }); - - let proxy_server_handle = tokio::spawn(async move { - proxy_server.start(shutdown_tx.subscribe()).await - }); - - let graphql_server_handle = tokio::spawn(async move { - graphql_server.await - }); - - let grpc_server_handle = tokio::spawn(async move { - grpc_server.await - }); - - let libp2p_relay_server_handle = tokio::spawn(async move { - libp2p_relay_server.run().await - }); + let engine_handle = tokio::spawn(async move { engine.start().await }); + let proxy_server_handle = + tokio::spawn(async move { proxy_server.start(shutdown_tx.subscribe()).await }); + let graphql_server_handle = tokio::spawn(async move { graphql_server.await }); + let grpc_server_handle = tokio::spawn(async move { grpc_server.await }); + let libp2p_relay_server_handle = tokio::spawn(async move { libp2p_relay_server.run().await }); tokio::select! { res = engine_handle => res??,