mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: Add reth rustfmt
This commit is contained in:
12
src/main.rs
12
src/main.rs
@ -2,7 +2,7 @@ use clap::{Args, Parser};
|
||||
use reth::builder::NodeHandle;
|
||||
use reth_hl::{
|
||||
chainspec::parser::HlChainSpecParser,
|
||||
node::{cli::Cli, HlNode, storage::tables::Tables},
|
||||
node::{cli::Cli, storage::tables::Tables, HlNode},
|
||||
};
|
||||
|
||||
// We use jemalloc for performance reasons
|
||||
@ -26,14 +26,10 @@ fn main() -> eyre::Result<()> {
|
||||
Cli::<HlChainSpecParser, NoArgs>::parse().run(|builder, _| async move {
|
||||
builder.builder.database.create_tables_for::<Tables>()?;
|
||||
let (node, engine_handle_tx) = HlNode::new();
|
||||
let NodeHandle {
|
||||
node,
|
||||
node_exit_future: exit_future,
|
||||
} = builder.node(node).launch().await?;
|
||||
let NodeHandle { node, node_exit_future: exit_future } =
|
||||
builder.node(node).launch().await?;
|
||||
|
||||
engine_handle_tx
|
||||
.send(node.beacon_engine_handle.clone())
|
||||
.unwrap();
|
||||
engine_handle_tx.send(node.beacon_engine_handle.clone()).unwrap();
|
||||
|
||||
exit_future.await
|
||||
})?;
|
||||
|
||||
Reference in New Issue
Block a user