mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-20 16:54:32 +01:00
cleanup main func
This commit is contained in:
@@ -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(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user