Skip to content

Commit

Permalink
chore: move component client server test to tests dir
Browse files Browse the repository at this point in the history
commit-id:866c1c00
  • Loading branch information
Itay-Tsabary-Starkware committed Jun 6, 2024
1 parent fc51e8c commit 33f7de3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 0 additions & 4 deletions crates/mempool_infra/src/component_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ use tokio::sync::mpsc::{channel, Sender};

use crate::component_definitions::ComponentRequestAndResponseSender;

#[cfg(test)]
#[path = "component_server_client_test.rs"]
mod component_server_client_test;

#[derive(Clone)]
pub struct ComponentClient<Request, Response>
where
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
use async_trait::async_trait;
use starknet_mempool_infra::component_client::ComponentClient;
use starknet_mempool_infra::component_definitions::{
ComponentRequestAndResponseSender, ComponentRequestHandler,
};
use starknet_mempool_infra::component_server::ComponentServer;
use tokio::sync::mpsc::{channel, Sender};
use tokio::task;

use crate::component_client::ComponentClient;

type ValueA = u32;
type ValueB = u8;

use crate::component_definitions::{ComponentRequestAndResponseSender, ComponentRequestHandler};
use crate::component_server::ComponentServer;

#[async_trait]
trait ComponentATrait: Send + Sync {
async fn a_get_value(&self) -> ValueA;
Expand Down

0 comments on commit 33f7de3

Please sign in to comment.