Skip to content

Commit

Permalink
refactor: restrict RemoteServers struct and field visibility
Browse files Browse the repository at this point in the history
commit-id:143ae876
  • Loading branch information
nadin-Starkware committed Nov 17, 2024
1 parent d901135 commit ad89792
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions crates/starknet_sequencer_node/src/servers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,11 @@ impl WrapperServers {
}

// Component servers that can run remotely.
// TODO(Nadin): Remove pub from the struct and update the fields to be pub(crate).
pub struct RemoteServers {
pub batcher: Option<Box<RemoteBatcherServer>>,
pub gateway: Option<Box<RemoteGatewayServer>>,
pub mempool: Option<Box<RemoteMempoolServer>>,
pub mempool_p2p_propagator: Option<Box<RemoteMempoolP2pPropagatorServer>>,
struct RemoteServers {
pub(crate) batcher: Option<Box<RemoteBatcherServer>>,
pub(crate) gateway: Option<Box<RemoteGatewayServer>>,
pub(crate) mempool: Option<Box<RemoteMempoolServer>>,
pub(crate) mempool_p2p_propagator: Option<Box<RemoteMempoolP2pPropagatorServer>>,
}

impl RemoteServers {
Expand Down

0 comments on commit ad89792

Please sign in to comment.