1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-09-24 18:26:55 +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()
.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>(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))
},