Skip to content

Commit

Permalink
refactor(mempool_p2p): rename modules to propagator and runner (#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShahakShama authored Oct 28, 2024
1 parent 98f83f5 commit dfc5925
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/mempool_node/src/components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use starknet_consensus_manager::consensus_manager::ConsensusManager;
use starknet_gateway::gateway::{create_gateway, Gateway};
use starknet_http_server::http_server::{create_http_server, HttpServer};
use starknet_mempool::communication::{create_mempool, MempoolCommunicationWrapper};
use starknet_mempool_p2p::sender::EmptyMempoolP2pPropagatorClient;
use starknet_mempool_p2p::propagator::EmptyMempoolP2pPropagatorClient;
use starknet_monitoring_endpoint::monitoring_endpoint::{
create_monitoring_endpoint,
MonitoringEndpoint,
Expand Down
8 changes: 4 additions & 4 deletions crates/mempool_p2p/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
pub mod config;
pub mod receiver;
pub mod sender;
pub mod propagator;
pub mod runner;

use papyrus_network::gossipsub_impl::Topic;
use papyrus_network::network_manager::{BroadcastTopicChannels, NetworkManager};
use starknet_gateway_types::communication::SharedGatewayClient;

use crate::config::MempoolP2pConfig;
use crate::receiver::MempoolP2pRunner;
use crate::sender::MempoolP2pPropagator;
use crate::propagator::MempoolP2pPropagator;
use crate::runner::MempoolP2pRunner;

const MEMPOOL_TOPIC: &str = "starknet_mempool_transaction_propagation/0.1.0";

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use starknet_mempool_p2p_types::communication::MempoolP2pPropagatorRequest;
use starknet_sequencer_infra::component_definitions::ComponentRequestHandler;
use tokio::time::timeout;

use crate::sender::MempoolP2pPropagator;
use super::MempoolP2pPropagator;

const TIMEOUT: std::time::Duration = std::time::Duration::from_secs(1);

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use starknet_gateway_types::gateway_types::GatewayInput;
use starknet_sequencer_infra::component_definitions::ComponentStarter;
use tokio::time::sleep;

use crate::receiver::MempoolP2pRunner;
use super::MempoolP2pRunner;

// TODO(eitan): Make it an automock
#[derive(Clone)]
Expand Down

0 comments on commit dfc5925

Please sign in to comment.