Skip to content

Commit

Permalink
Remove unnecessary apiclientwrapper methods
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhuaaa committed Nov 10, 2023
1 parent b091059 commit 82d1eb7
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions xmtp_mls/src/api_client_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use std::collections::HashMap;

use xmtp_proto::{
api_client::{
BatchQueryRequest, BatchQueryResponse, Envelope, Error as ApiError, ErrorKind, PagingInfo,
QueryRequest, QueryResponse, SubscribeRequest, XmtpApiClient, XmtpMlsClient,
Envelope, Error as ApiError, ErrorKind, PagingInfo, QueryRequest, XmtpApiClient,
XmtpMlsClient,
},
xmtp::{
message_api::{
Expand Down Expand Up @@ -36,24 +36,6 @@ where
Self { api_client }
}

pub async fn subscribe(
&self,
request: SubscribeRequest,
) -> Result<ApiClient::Subscription, ApiError> {
self.api_client.subscribe(request).await
}

pub async fn query(&self, request: QueryRequest) -> Result<QueryResponse, ApiError> {
self.api_client.query(request).await
}

pub async fn batch_query(
&self,
request: BatchQueryRequest,
) -> Result<BatchQueryResponse, ApiError> {
self.api_client.batch_query(request).await
}

pub async fn read_topic(
&self,
topic: &str,
Expand Down

0 comments on commit 82d1eb7

Please sign in to comment.