mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-30 18:42:05 +00:00
fix: Remove needless async
marker
This commit is contained in:
parent
c9117e6ee4
commit
d6b1055683
1 changed files with 4 additions and 4 deletions
|
@ -1103,7 +1103,7 @@ impl Service {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
async fn parse_profile_kv(
|
fn parse_profile_kv(
|
||||||
&self,
|
&self,
|
||||||
user_id: &UserId,
|
user_id: &UserId,
|
||||||
key: &str,
|
key: &str,
|
||||||
|
@ -1140,8 +1140,8 @@ impl Service {
|
||||||
self.db
|
self.db
|
||||||
.useridprofilekey_value
|
.useridprofilekey_value
|
||||||
.qry(&key)
|
.qry(&key)
|
||||||
.and_then(|handle| self.parse_profile_kv(user_id, profile_key, handle.to_vec()))
|
|
||||||
.await
|
.await
|
||||||
|
.and_then(|handle| self.parse_profile_kv(user_id, profile_key, handle.to_vec()))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Gets all the user's profile keys and values in an iterator
|
/// Gets all the user's profile keys and values in an iterator
|
||||||
|
@ -1156,8 +1156,8 @@ impl Service {
|
||||||
.useridprofilekey_value
|
.useridprofilekey_value
|
||||||
.stream_prefix(&prefix)
|
.stream_prefix(&prefix)
|
||||||
.ignore_err()
|
.ignore_err()
|
||||||
.then(async |((_, key), value): KeyVal<'_>| {
|
.map(|((_, key), value): KeyVal<'_>| {
|
||||||
let value = self.parse_profile_kv(user_id, &key, value.to_vec()).await?;
|
let value = self.parse_profile_kv(user_id, &key, value.to_vec())?;
|
||||||
Ok((key, value))
|
Ok((key, value))
|
||||||
})
|
})
|
||||||
.ignore_err()
|
.ignore_err()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue