Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/ethrex/l2/initializers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ pub async fn init_l2(
.expect("P2P context could not be created");

let initiator = RLPxInitiator::spawn(p2p_context.clone()).await;
let peer_handler = PeerHandler::new(PeerTable::spawn(opts.node_opts.target_peers), initiator);
let peer_handler = PeerHandler::new(peer_table, initiator);

let cancel_token = tokio_util::sync::CancellationToken::new();

Expand Down
2 changes: 1 addition & 1 deletion crates/networking/p2p/rlpx/initiator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl RLPxInitiator {
pub async fn dummy(peer_table: PeerTable) -> GenServerHandle<RLPxInitiator> {
info!("Starting RLPx Initiator");
let state = RLPxInitiator::new(P2PContext::dummy(peer_table).await);
RLPxInitiator::start_on_thread(state)
RLPxInitiator::start(state)
}
}

Expand Down
Loading