Skip to content

Commit

Permalink
feat: add function to create all clients
Browse files Browse the repository at this point in the history
commit-id:414d7889
  • Loading branch information
lev-starkware committed Jun 25, 2024
1 parent 3faa29a commit 631960c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/mempool_infra/src/component_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ pub enum ComponentStartError {
InternalComponentError,
}

/// Interface to create memepool components.
/// Interface to create components.
pub trait ComponentCreator<T: SerializeConfig> {
fn create(config: T) -> Self;
}

/// Interface to start memepool components.
/// Interface to start components.
#[async_trait]
pub trait ComponentRunner {
/// Start the component. Normally this function should never return.
Expand Down

0 comments on commit 631960c

Please sign in to comment.