-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: separate mempool infra test utils from test
commit-id:678cdaac
- Loading branch information
1 parent
33f7de3
commit 09712b6
Showing
2 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use async_trait::async_trait; | ||
|
||
type ValueA = u32; | ||
type ValueB = u8; | ||
|
||
#[async_trait] | ||
pub(crate) trait ComponentATrait: Send + Sync { | ||
async fn a_get_value(&self) -> ValueA; | ||
} | ||
|
||
#[async_trait] | ||
pub(crate) trait ComponentBTrait: Send + Sync { | ||
async fn b_get_value(&self) -> ValueB; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters