chore: left some comments

This commit is contained in:
Daniil Polyakov 2025-11-19 17:33:25 +03:00
parent d15d208ad3
commit 95ec42bba7
2 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,7 @@ use sequencer_runner::main_runner;
pub const NUM_THREADS: usize = 4; pub const NUM_THREADS: usize = 4;
// TODO: Why it requires config as a directory and not as a file?
fn main() -> Result<()> { fn main() -> Result<()> {
actix::System::with_tokio_rt(|| { actix::System::with_tokio_rt(|| {
tokio::runtime::Builder::new_multi_thread() tokio::runtime::Builder::new_multi_thread()

View File

@ -5,6 +5,10 @@ use wallet::{Args, execute_continious_run, execute_subcommand};
pub const NUM_THREADS: usize = 2; pub const NUM_THREADS: usize = 2;
// TODO #169: We have sample configs for sequencer, but not for wallet
// TODO #168: Why it requires config as a directory? Maybe better to deduce directory from config file path?
// TODO #172: Why it requires config as env var while sequencer_runner accepts as argument?
// TODO #171: Running pinata doesn't give output about transaction hash and etc.
fn main() -> Result<()> { fn main() -> Result<()> {
let runtime = Builder::new_multi_thread() let runtime = Builder::new_multi_thread()
.worker_threads(NUM_THREADS) .worker_threads(NUM_THREADS)
@ -18,6 +22,7 @@ fn main() -> Result<()> {
runtime.block_on(async move { runtime.block_on(async move {
if let Some(command) = args.command { if let Some(command) = args.command {
// TODO: It should return error, not panic
execute_subcommand(command).await.unwrap(); execute_subcommand(command).await.unwrap();
} else if args.continious_run { } else if args.continious_run {
execute_continious_run().await.unwrap(); execute_continious_run().await.unwrap();