Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx authored Aug 29, 2024
1 parent 514225e commit db0ca10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions xmtp_mls/src/groups/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ pub enum GroupError {
SqlKeyStore(#[from] sql_key_store::SqlKeyStoreError),
#[error("No pending commit found")]
MissingPendingCommit,
#[error("Sync failed to wait for intent: {0}")]
SyncFailedToWait(String),
#[error("Sync failed to wait for intent")]
SyncFailedToWait,
}

impl RetryableError for GroupError {
Expand Down
5 changes: 2 additions & 3 deletions xmtp_mls/src/groups/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,8 @@ impl MlsGroup {
num_attempts += 1;
}

Err(last_err.unwrap_or(GroupError::SyncFailedToWait(
"failed to wait for intent".to_string(),
)))
Err(last_err.unwrap_or(GroupError::SyncFailedToWait)
))
}

fn is_valid_epoch(
Expand Down

0 comments on commit db0ca10

Please sign in to comment.