Skip to content

Commit

Permalink
Call node.bootstrap()
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Oct 18, 2024
1 parent 2ec45d0 commit f7b31e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/subspace-gateway/src/commands/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub async fn run(run_options: RunOptions) -> anyhow::Result<()> {
info!("✌️ version {}", env!("CARGO_PKG_VERSION"));
info!("❤️ by {}", env!("CARGO_PKG_AUTHORS"));

let (_dsn_node, mut dsn_node_runner) = dsn::configure_network(dsn)?;
let (_dsn_node, mut dsn_node_runner) = dsn::configure_network(dsn).await?;
let dsn_fut = dsn_node_runner.run();

let rpc_fut = future::pending::<()>();
Expand Down
4 changes: 3 additions & 1 deletion crates/subspace-gateway/src/commands/run/dsn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub(crate) struct NetworkArgs {
}

/// Create a DSN network client with the supplied configuration.
pub(crate) fn configure_network(
pub(crate) async fn configure_network(
NetworkArgs {
dsn_bootstrap_nodes,
allow_private_ips,
Expand All @@ -58,5 +58,7 @@ pub(crate) fn configure_network(

let (node, node_runner) = construct(config)?;

node.bootstrap().await?;

Ok((node, node_runner))
}

0 comments on commit f7b31e1

Please sign in to comment.