Skip to content

Commit

Permalink
fix(iota): build swarm in blocking task in iota start (#2978)
Browse files Browse the repository at this point in the history
  • Loading branch information
kodemartin authored Oct 1, 2024
1 parent acc6b25 commit 3566fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/iota/src/iota_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ async fn start(
.with_fullnode_rpc_addr(fullnode_url);
}

let mut swarm = swarm_builder.build();
let mut swarm = tokio::task::spawn_blocking(move || swarm_builder.build()).await?;
swarm.launch().await?;
// Let nodes connect to one another
tokio::time::sleep(tokio::time::Duration::from_secs(2)).await;
Expand Down

0 comments on commit 3566fa6

Please sign in to comment.