Skip to content

Commit b1a41ba

Browse files
committed
fix: swap tonic for async trait.
1 parent 04972b7 commit b1a41ba

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protocol-units/settlement/mcr/client/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rust-version = { workspace = true }
1212
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1313

1414
[dependencies]
15-
tonic = { workspace = true }
15+
async-trait = { workspace = true }
1616
tokio = { workspace = true }
1717
anyhow = { workspace = true }
1818
tokio-stream = { workspace = true }

protocol-units/settlement/mcr/client/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub use stub::*;
1010

1111
type CommitmentStream = std::pin::Pin<Box<dyn Stream<Item = Result<BlockCommitment, anyhow::Error>> + Send>>;
1212

13-
#[tonic::async_trait]
13+
#[async_trait::async_trait]
1414
pub trait McrSettlementClientOperations {
1515

1616
async fn post_block_commitment(&self, block_commitment : BlockCommitment) -> Result<(), anyhow::Error>;

protocol-units/settlement/mcr/client/src/stub.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl McrSettlementClient {
2323
}
2424

2525

26-
#[tonic::async_trait]
26+
#[async_trait::async_trait]
2727
impl McrSettlementClientOperations for McrSettlementClient {
2828

2929
async fn post_block_commitment(&self, block_commitment: BlockCommitment) -> Result<(), anyhow::Error> {

0 commit comments

Comments
 (0)