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 a015c8c commit 1879f14
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 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 Expand Up @@ -329,7 +328,7 @@ fn create_local_servers(
}
}

pub fn create_remote_servers(
fn create_remote_servers(
config: &SequencerNodeConfig,
clients: &SequencerNodeClients,
) -> RemoteServers {
Expand Down

0 comments on commit 1879f14

Please sign in to comment.