From 458811f2415473eb450834b3da5f64f781d68ce1 Mon Sep 17 00:00:00 2001 From: Ginger Date: Wed, 17 Sep 2025 20:04:50 -0400 Subject: [PATCH] fix: Fix nexy's very accurate and not-at-all busted fix to my fix --- src/service/migrations.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/service/migrations.rs b/src/service/migrations.rs index 824035dc..eff3ab6d 100644 --- a/src/service/migrations.rs +++ b/src/service/migrations.rs @@ -588,7 +588,7 @@ async fn fix_corrupt_msc4133_fields(services: &Services) -> Result { .stream() .try_fold( (0_usize, 0_usize), - async |(total, mut fixed), + async |(mut total, mut fixed), ((user, key), value): KeyVal<'_>| -> Result<(usize, usize)> { if let Err(error) = from_slice::(value) { @@ -607,8 +607,9 @@ async fn fix_corrupt_msc4133_fields(services: &Services) -> Result { }; useridprofilekey_value.put((user, key), new_value); + fixed = fixed.saturating_add(1); } - fixed = total.saturating_add(1); + total = total.saturating_add(1); Ok((total, fixed)) },