mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 02:49:55 +00:00
remove: remove unused main
This commit is contained in:
@ -1,16 +0,0 @@
|
||||
use clap::Parser;
|
||||
use reth_my_p2p::cli::PseudoPeerCommand;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> eyre::Result<()> {
|
||||
let cli = PseudoPeerCommand::parse();
|
||||
cli.logs.init_tracing()?;
|
||||
|
||||
// Parse and create block source configuration
|
||||
let block_source_config = cli.source.parse().await?;
|
||||
let block_source = block_source_config.create_cached_block_source().await;
|
||||
|
||||
// Start the worker
|
||||
reth_my_p2p::start_pseudo_peer(cli.destination_peer, block_source).await?;
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user