Skip to content

Commit

Permalink
chore: do not spawn bootstrap in separate thread
Browse files Browse the repository at this point in the history
  • Loading branch information
thevaibhav-dixit committed Jan 23, 2025
1 parent a6a29cf commit eecf5a8
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lana/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,10 @@ async fn run_cmd(lana_home: &str, config: Config) -> anyhow::Result<()> {
let superuser_email = config.app.user.superuser_email.clone().expect("super user");

let admin_app = lana_app::app::LanaApp::run(pool.clone(), config.app).await?;
let bootstrap_admin_app = admin_app.clone();

#[cfg(feature = "sim-bootstrap")]
{
handles.push(tokio::spawn(async move {
let _ = sim_bootstrap::run(
superuser_email.to_string(),
bootstrap_admin_app,
config.bootstrap,
)
.await;
}));
let _ = sim_bootstrap::run(superuser_email.to_string(), &admin_app, config.bootstrap).await;
}

let admin_send = send.clone();
Expand Down

0 comments on commit eecf5a8

Please sign in to comment.