Skip to content

Commit

Permalink
fix: dont even have todo. err instead. (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuddman authored Mar 30, 2024
1 parent 8158f1b commit 67a03a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions xmtp_mls/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 6 additions & 2 deletions xmtp_mls/src/groups/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
Expand Down Expand Up @@ -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),
}
Expand Down

0 comments on commit 67a03a5

Please sign in to comment.