Skip to content

Commit

Permalink
chore(mempool_node): improve server module visibilty constraints
Browse files Browse the repository at this point in the history
commit-id:805a40ee
  • Loading branch information
Itay-Tsabary-Starkware committed Oct 21, 2024
1 parent 5fb3fcf commit a112038
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions crates/mempool_node/src/servers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,22 @@ use crate::components::SequencerNodeComponents;
use crate::config::SequencerNodeConfig;

// Component servers that can run locally.
pub struct LocalServers {
pub batcher: Option<Box<LocalBatcherServer>>,
pub gateway: Option<Box<LocalGatewayServer>>,
pub mempool: Option<Box<LocalMempoolServer>>,
struct LocalServers {
pub(crate) batcher: Option<Box<LocalBatcherServer>>,
pub(crate) gateway: Option<Box<LocalGatewayServer>>,
pub(crate) mempool: Option<Box<LocalMempoolServer>>,
}

// Component servers that wrap a component without a server.
pub struct WrapperServers {
pub consensus_manager: Option<Box<ConsensusManagerServer>>,
pub http_server: Option<Box<HttpServer>>,
pub monitoring_endpoint: Option<Box<MonitoringEndpointServer>>,
struct WrapperServers {
pub(crate) consensus_manager: Option<Box<ConsensusManagerServer>>,
pub(crate) http_server: Option<Box<HttpServer>>,
pub(crate) monitoring_endpoint: Option<Box<MonitoringEndpointServer>>,
}

/// TODO(Tsabary): make these fields private, currently public to support the outdated e2e test.
pub struct SequencerNodeServers {
pub local_servers: LocalServers,
pub wrapper_servers: WrapperServers,
local_servers: LocalServers,
wrapper_servers: WrapperServers,
}

pub fn create_node_servers(
Expand Down

0 comments on commit a112038

Please sign in to comment.