Skip to content

Commit 110c6dc

Browse files
committed
refactor(hermes): no need to Box futures
1 parent d627a49 commit 110c6dc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hermes/src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ async fn init() -> Result<()> {
6666

6767
// Spawn all worker tasks, and wait for all to complete (which will happen if a shutdown
6868
// signal has been observed).
69-
let tasks = join_all([
70-
Box::pin(spawn(network::wormhole::spawn(opts.clone(), store.clone()))),
71-
Box::pin(spawn(network::pythnet::spawn(opts.clone(), store.clone()))),
72-
Box::pin(spawn(metrics_server::run(opts.clone(), store.clone()))),
73-
Box::pin(spawn(api::spawn(opts.clone(), store.clone(), update_tx))),
69+
let tasks = join_all(vec![
70+
spawn(network::wormhole::spawn(opts.clone(), store.clone())),
71+
spawn(network::pythnet::spawn(opts.clone(), store.clone())),
72+
spawn(metrics_server::run(opts.clone(), store.clone())),
73+
spawn(api::spawn(opts.clone(), store.clone(), update_tx)),
7474
])
7575
.await;
7676

0 commit comments

Comments
 (0)