Skip to content

Commit 67a03a5

Browse files
authored
fix: dont even have todo. err instead. (#607)
1 parent 8158f1b commit 67a03a5

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

xmtp_mls/src/client.rs

+2
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ pub enum MessageProcessingError {
123123
WrongCredentialType(#[from] BasicCredentialError),
124124
#[error("proto decode error: {0}")]
125125
DecodeError(#[from] prost::DecodeError),
126+
#[error("generic:{0}")]
127+
Generic(String),
126128
}
127129

128130
impl crate::retry::RetryableError for MessageProcessingError {

xmtp_mls/src/groups/sync.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ where
237237
conn.set_delivery_status_to_published(&message_id, envelope_timestamp_ns)?;
238238
}
239239
Some(Content::V2(_)) => {
240-
todo!()
240+
return Err(MessageProcessingError::Generic(
241+
"not yet implemented".into(),
242+
))
241243
}
242244
None => return Err(MessageProcessingError::InvalidPayload),
243245
};
@@ -297,7 +299,9 @@ where
297299
.store(provider.conn())?
298300
}
299301
Some(Content::V2(_)) => {
300-
todo!()
302+
return Err(MessageProcessingError::Generic(
303+
"not yet implemented".into(),
304+
))
301305
}
302306
None => return Err(MessageProcessingError::InvalidPayload),
303307
}

0 commit comments

Comments
 (0)