mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
refactor(rpc): remove intermediate types from rpc start up process (#9180)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user