mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 17:18:08 -05:00
refactor(rpc): downgrade single mod files (#866)
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user