mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-02 21:33:09 +00:00
17 lines
421 B
Rust
17 lines
421 B
Rust
use anyhow::Result;
|
|
use sequencer_runner::main_runner;
|
|
|
|
pub const NUM_THREADS: usize = 4;
|
|
|
|
// TODO: Why it requires config as a directory and not as a file?
|
|
fn main() -> Result<()> {
|
|
actix::System::with_tokio_rt(|| {
|
|
tokio::runtime::Builder::new_multi_thread()
|
|
.worker_threads(NUM_THREADS)
|
|
.enable_all()
|
|
.build()
|
|
.unwrap()
|
|
})
|
|
.block_on(main_runner())
|
|
}
|