xmtp_mls/groups/app_data/migration.rs
1//! Errors from building a group's app data dictionary values.
2//!
3//! The bootstrap bridge that moved legacy groups to app data (sender
4//! synthesis and `stage_bootstrap_commit`) is gone. Groups have been created
5//! with the dictionary since libxmtp #4152.
6
7use xmtp_mls_group_state::app_data::migration::MigrationError as CommonMigrationError;
8
9/// Errors from encoding app data dictionary values.
10#[derive(Debug, thiserror::Error)]
11pub enum BootstrapSynthesisError {
12 #[error(transparent)]
13 Common(#[from] CommonMigrationError),
14}
15
16impl xmtp_common::retry::RetryableError for BootstrapSynthesisError {
17 /// Encoding is deterministic over its inputs, so no failure is retryable.
18 fn is_retryable(&self) -> bool {
19 false
20 }
21}