Skip to content

Commit

Permalink
updated commands
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimenez committed May 11, 2024
1 parent 1a039d6 commit a6f2112
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions bin/reth/src/commands/debug_cmd/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::{
utils::get_single_header,
};
use clap::Parser;
use futures::{stream::select as stream_select, StreamExt};
use futures::stream::select as stream_select;
use reth_beacon_consensus::EthBeaconConsensus;
use reth_cli_runner::CliContext;
use reth_config::{config::EtlConfig, Config};
Expand Down Expand Up @@ -264,8 +264,8 @@ impl Command {

let pipeline_events = pipeline.events();
let events = stream_select(
network.event_listener().map(Into::into),
pipeline_events.map(Into::into),
reth_node_events::node::handle_broadcast_stream(network.event_listener()),
reth_node_events::node::handle_broadcast_stream(pipeline_events),
);
ctx.task_executor.spawn_critical(
"events task",
Expand Down
4 changes: 2 additions & 2 deletions bin/reth/src/commands/import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::{
};
use clap::Parser;
use eyre::Context;
use futures::{Stream, StreamExt};
use futures::Stream;
use reth_beacon_consensus::EthBeaconConsensus;
use reth_config::{config::EtlConfig, Config};
use reth_consensus::Consensus;
Expand Down Expand Up @@ -300,7 +300,7 @@ where
)
.build(provider_factory, static_file_producer);

let events = pipeline.events().map(Into::into);
let events = reth_node_events::node::handle_broadcast_stream(pipeline.events());

Ok((pipeline, events))
}
Expand Down

0 comments on commit a6f2112

Please sign in to comment.