Skip to content

Commit

Permalink
perf: spawn handlers before network (paradigmxyz#2868)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored May 26, 2023
1 parent 79f99ad commit a8b3988
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/reth/src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,14 +490,14 @@ impl Command {
.request_handler(client)
.split_with_handle();

task_executor.spawn_critical("p2p txpool", txpool);
task_executor.spawn_critical("p2p eth request handler", eth);

let known_peers_file = self.network.persistent_peers_file(default_peers_path);
task_executor.spawn_critical_with_signal("p2p network task", |shutdown| {
run_network_until_shutdown(shutdown, network, known_peers_file)
});

task_executor.spawn_critical("p2p eth request handler", eth);
task_executor.spawn_critical("p2p txpool request handler", txpool);

Ok(handle)
}

Expand Down

0 comments on commit a8b3988

Please sign in to comment.