This commit is contained in:
Evan Feenstra
2023-02-10 12:24:30 -08:00
parent ae2855d793
commit 74285b18e2
4 changed files with 21 additions and 16 deletions

View File

@@ -101,7 +101,9 @@ async fn run_main(parent_fd: i32) -> rocket::Rocket<rocket::Build> {
error_log::log_errors(error_rx);
log::info!("=> start broker on network: {}", settings.network);
start_broker(rx, status_tx, error_tx.clone(), CLIENT_ID, settings).await;
start_broker(rx, status_tx, error_tx.clone(), CLIENT_ID, settings)
.await
.expect("BROKER FAILED TO START");
log::info!("=> wait for connected status");
// wait for connection = true
let status = status_rx.recv().await.expect("couldnt receive");