Skip to content

Commit

Permalink
refactor(rpc): remove intermediate types from rpc start up process (#…
Browse files Browse the repository at this point in the history
…9180)

Co-authored-by: Matthias Seitz <[email protected]>
  • Loading branch information
smatthewenglish and mattsse authored Jul 8, 2024
1 parent 94f1adf commit 9c0bc84
Show file tree
Hide file tree
Showing 5 changed files with 132 additions and 305 deletions.
3 changes: 2 additions & 1 deletion crates/node/builder/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ where
extend_rpc_modules.extend_rpc_modules(ctx)?;

let server_config = config.rpc.rpc_server_config();
let launch_rpc = modules.clone().start_server(server_config).map_ok(|handle| {
let cloned_modules = modules.clone();
let launch_rpc = server_config.start(&cloned_modules).map_ok(|handle| {
if let Some(path) = handle.ipc_endpoint() {
info!(target: "reth::cli", %path, "RPC IPC server started");
}
Expand Down
Loading

0 comments on commit 9c0bc84

Please sign in to comment.