Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink committed Dec 13, 2024
1 parent 6fd93fe commit 1eb28a3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions xmtp_mls/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ where
.map(|group| {
let active_group_count = Arc::clone(&active_group_count);
async move {

let mls_group = group.load_mls_group(provider)?;
tracing::info!(
inbox_id = self.inbox_id(),
"[{}] syncing group",
Expand All @@ -884,11 +884,7 @@ where
"current epoch for [{}] in sync_all_groups()",
self.inbox_id(),
);
let is_active = {
let mls_group = group.load_mls_group(provider)?;
mls_group.is_active()
};
if is_active {
if mls_group.is_active() {
group.maybe_update_installations(provider, None).await?;
group.sync_with_conn(provider).await?;
active_group_count.fetch_add(1, Ordering::SeqCst);
Expand Down

0 comments on commit 1eb28a3

Please sign in to comment.