This commit is contained in:
Pravdyvy 2025-12-01 14:19:25 +02:00
parent 38acb89b93
commit b1b7bc4463
2 changed files with 7 additions and 6 deletions

View File

@ -19,7 +19,8 @@ use tokio::io::AsyncWriteExt;
use crate::{
config::PersistentStorage,
helperfunctions::{
fetch_config, fetch_persistent_storage, get_home, produce_data_for_storage, produce_random_nonces
fetch_config, fetch_persistent_storage, get_home, produce_data_for_storage,
produce_random_nonces,
},
poller::TxPoller,
};

View File

@ -1,8 +1,10 @@
use anyhow::Result;
use clap::{CommandFactory as _, Parser as _};
use tokio::runtime::Builder;
use wallet::cli::{Args, OverCommand, execute_continuous_run, execute_subcommand};
use wallet::execute_setup;
use wallet::{
cli::{Args, OverCommand, execute_continuous_run, execute_subcommand},
execute_setup,
};
pub const NUM_THREADS: usize = 2;
@ -31,9 +33,7 @@ fn main() -> Result<()> {
let _output = execute_subcommand(command).await?;
Ok(())
}
OverCommand::Setup { password } => {
Ok(execute_setup(password).await?)
}
OverCommand::Setup { password } => Ok(execute_setup(password).await?),
}
} else if args.continuous_run {
Ok(execute_continuous_run().await?)