From f1a7bd163f02b17ddb1f0bfee254e94f216f025d Mon Sep 17 00:00:00 2001 From: tuddman Date: Sat, 30 Mar 2024 08:58:06 +0100 Subject: [PATCH] fix: dont even have todo. err instead. --- xmtp_mls/src/client.rs | 2 ++ xmtp_mls/src/groups/sync.rs | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/xmtp_mls/src/client.rs b/xmtp_mls/src/client.rs index 9f8953f62..6972476e0 100644 --- a/xmtp_mls/src/client.rs +++ b/xmtp_mls/src/client.rs @@ -123,6 +123,8 @@ pub enum MessageProcessingError { WrongCredentialType(#[from] BasicCredentialError), #[error("proto decode error: {0}")] DecodeError(#[from] prost::DecodeError), + #[error("generic:{0}")] + Generic(String), } impl crate::retry::RetryableError for MessageProcessingError { diff --git a/xmtp_mls/src/groups/sync.rs b/xmtp_mls/src/groups/sync.rs index d1070305b..95a6ee5b4 100644 --- a/xmtp_mls/src/groups/sync.rs +++ b/xmtp_mls/src/groups/sync.rs @@ -237,7 +237,9 @@ where conn.set_delivery_status_to_published(&message_id, envelope_timestamp_ns)?; } Some(Content::V2(_)) => { - todo!() + return Err(MessageProcessingError::Generic( + "not yet implemented".into(), + )) } None => return Err(MessageProcessingError::InvalidPayload), }; @@ -297,7 +299,9 @@ where .store(provider.conn())? } Some(Content::V2(_)) => { - todo!() + return Err(MessageProcessingError::Generic( + "not yet implemented".into(), + )) } None => return Err(MessageProcessingError::InvalidPayload), }