mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-02 21:33:09 +00:00
19 lines
445 B
Rust
19 lines
445 B
Rust
use anyhow::Result;
|
|
use log::info;
|
|
use node_rpc::new_http_server;
|
|
use rpc_primitives::RpcConfig;
|
|
|
|
pub async fn main_runner() -> Result<()> {
|
|
env_logger::init();
|
|
|
|
let http_server = new_http_server(RpcConfig::default())?;
|
|
info!("HTTP server started");
|
|
let _http_server_handle = http_server.handle();
|
|
tokio::spawn(http_server);
|
|
|
|
#[allow(clippy::empty_loop)]
|
|
loop {
|
|
//ToDo: Insert activity into main loop
|
|
}
|
|
}
|