mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-07 15:53:14 +00:00
chore: left some comments
This commit is contained in:
parent
d15d208ad3
commit
95ec42bba7
@ -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()
|
||||||
|
|||||||
@ -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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user