mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
fix: Fix nexy's very accurate and not-at-all busted fix to my fix
This commit is contained in:
@@ -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))
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user