mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: don't import ipc client on windows (#7712)
This commit is contained in:
@ -13,7 +13,6 @@ use jsonrpsee::{
|
||||
server::{AlreadyStoppedError, RpcModule},
|
||||
Methods,
|
||||
};
|
||||
use reth_ipc::client::IpcClientBuilder;
|
||||
pub use reth_ipc::server::{Builder as IpcServerBuilder, Endpoint};
|
||||
|
||||
use reth_engine_primitives::EngineTypes;
|
||||
@ -445,6 +444,8 @@ impl AuthServerHandle {
|
||||
/// Returns an ipc client connected to the server.
|
||||
#[cfg(unix)]
|
||||
pub async fn ipc_client(&self) -> Option<jsonrpsee::async_client::Client> {
|
||||
use reth_ipc::client::IpcClientBuilder;
|
||||
|
||||
if let Some(ipc_endpoint) = self.ipc_endpoint.clone() {
|
||||
return Some(
|
||||
IpcClientBuilder::default()
|
||||
|
||||
Reference in New Issue
Block a user