cleanup main func

This commit is contained in:
Evan Feenstra
2022-06-27 17:17:19 -07:00
parent e936d6784a
commit b30b8fe361

View File

@@ -83,7 +83,9 @@ fn main() -> anyhow::Result<()> {
log::info!("NETWORK: {}", network.to_string()); log::info!("NETWORK: {}", network.to_string());
if matches.is_present("test") { if matches.is_present("test") {
run_test::run_test(); run_test::run_test();
} else { return Ok(());
}
let (tx, rx) = mpsc::channel(1000); let (tx, rx) = mpsc::channel(1000);
let (status_tx, mut status_rx) = mpsc::channel(1000); let (status_tx, mut status_rx) = mpsc::channel(1000);
log::info!("=> start broker"); log::info!("=> start broker");
@@ -116,7 +118,6 @@ fn main() -> anyhow::Result<()> {
let mut signer_loop = SignerLoop::new(client, tx); let mut signer_loop = SignerLoop::new(client, tx);
signer_loop.start(); signer_loop.start();
// }) // })
}
Ok(()) Ok(())
} }