fix: don't import ipc client on windows (#7712)

This commit is contained in:
Oliver Nordbjerg
2024-04-18 12:55:54 +02:00
committed by GitHub
parent 0ff3b0e3af
commit 3a3b957961

View File

@ -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()