Skip to content

Commit

Permalink
chore: remove unsused EmptyMempoolP2pPropagatorClient (#2117)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlonLStarkWare authored Nov 18, 2024
1 parent ef8f923 commit 404599e
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions crates/starknet_mempool_p2p/src/propagator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@ mod test;

use async_trait::async_trait;
use papyrus_network::network_manager::{BroadcastTopicClient, BroadcastTopicClientTrait};
use papyrus_network_types::network_types::BroadcastedMessageMetadata;
use papyrus_protobuf::mempool::RpcTransactionWrapper;
use starknet_api::rpc_transaction::RpcTransaction;
use starknet_mempool_p2p_types::communication::{
MempoolP2pPropagatorClient,
MempoolP2pPropagatorClientResult,
MempoolP2pPropagatorRequest,
MempoolP2pPropagatorResponse,
};
Expand Down Expand Up @@ -55,25 +51,6 @@ impl ComponentRequestHandler<MempoolP2pPropagatorRequest, MempoolP2pPropagatorRe
}
}

pub struct EmptyMempoolP2pPropagatorClient;

#[async_trait]
impl MempoolP2pPropagatorClient for EmptyMempoolP2pPropagatorClient {
async fn add_transaction(
&self,
_transaction: RpcTransaction,
) -> MempoolP2pPropagatorClientResult<()> {
Ok(())
}

async fn continue_propagation(
&self,
_propagation_manager: BroadcastedMessageMetadata,
) -> MempoolP2pPropagatorClientResult<()> {
Ok(())
}
}

pub type LocalMempoolP2pPropagatorServer = LocalComponentServer<
MempoolP2pPropagator,
MempoolP2pPropagatorRequest,
Expand Down

0 comments on commit 404599e

Please sign in to comment.