refactor(rpc): downgrade single mod files (#866)

This commit is contained in:
Matthias Seitz
2023-01-13 14:27:15 +01:00
committed by GitHub
parent 707e488d2c
commit 77f48b05ba
3 changed files with 11 additions and 1 deletions

View File

@@ -3,7 +3,10 @@ use reth_network::{peers::PeerKind, NetworkHandle};
use reth_primitives::NodeRecord;
use reth_rpc_api::AdminApiServer;
struct AdminApi {
/// `admin` API implementation.
///
/// This type provides the functionality for handling `admin` related requests.
pub struct AdminApi {
/// An interface to interact with the network
network: NetworkHandle,
}
@@ -36,3 +39,9 @@ impl AdminApiServer for AdminApi {
todo!()
}
}
impl std::fmt::Debug for AdminApi {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("AdminApi").finish_non_exhaustive()
}
}

View File

@@ -16,6 +16,7 @@ mod engine;
mod eth;
mod net;
pub use admin::AdminApi;
pub use engine::EngineApi;
pub use eth::{EthApi, EthApiSpec, EthPubSub};
pub use net::NetApi;