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:
parent
0672ce5b88
commit
458811f241
1 changed files with 3 additions and 2 deletions
|
@ -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))
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue