Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Oct 17, 2024
1 parent 7f46ab9 commit b5ddd99
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions bin/torii/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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??,
Expand Down

0 comments on commit b5ddd99

Please sign in to comment.