1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-09-27 18:36:56 +00:00

fix: Fix nexy's very accurate and not-at-all busted fix to my fix

This commit is contained in:
Ginger 2025-09-17 20:04:50 -04:00
parent 0672ce5b88
commit 458811f241
No known key found for this signature in database

View file

@ -588,7 +588,7 @@ async fn fix_corrupt_msc4133_fields(services: &Services) -> Result {
.stream() .stream()
.try_fold( .try_fold(
(0_usize, 0_usize), (0_usize, 0_usize),
async |(total, mut fixed), async |(mut total, mut fixed),
((user, key), value): KeyVal<'_>| ((user, key), value): KeyVal<'_>|
-> Result<(usize, usize)> { -> Result<(usize, usize)> {
if let Err(error) = from_slice::<Value>(value) { if let Err(error) = from_slice::<Value>(value) {
@ -607,8 +607,9 @@ async fn fix_corrupt_msc4133_fields(services: &Services) -> Result {
}; };
useridprofilekey_value.put((user, key), new_value); 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)) Ok((total, fixed))
}, },