Skip to content

Commit bd6c85d

Browse files
committed
fix: remove duplicate trait.
1 parent 8228d24 commit bd6c85d

File tree

1 file changed

+1
-8
lines changed
  • protocol-units/settlement/mcr/client/src

1 file changed

+1
-8
lines changed

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

+1-8
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@ use movement_types::BlockCommitment;
22
use std::collections::HashMap;
33
use std::sync::Arc;
44
use tokio::sync::{Mutex, mpsc};
5-
use crate::CommitmentStream;
6-
7-
#[tonic::async_trait]
8-
pub trait McrSettlementClientOperations {
9-
async fn post_block_commitment(&self, block_commitment: BlockCommitment) -> Result<(), anyhow::Error>;
10-
async fn stream_block_commitments(&self) -> Result<CommitmentStream, anyhow::Error>;
11-
async fn get_commitment_at_height(&self, height: u64) -> Result<Option<BlockCommitment>, anyhow::Error>;
12-
}
5+
use crate::{McrSettlementClientOperations, CommitmentStream};
136

147
pub struct McrSettlementClient {
158
commitments: Arc<Mutex<HashMap<u64, BlockCommitment>>>,

0 commit comments

Comments
 (0)