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]
|
||||
async fn parse_profile_kv(
|
||||
fn parse_profile_kv(
|
||||
&self,
|
||||
user_id: &UserId,
|
||||
key: &str,
|
||||
|
@ -1140,8 +1140,8 @@ impl Service {
|
|||
self.db
|
||||
.useridprofilekey_value
|
||||
.qry(&key)
|
||||
.and_then(|handle| self.parse_profile_kv(user_id, profile_key, handle.to_vec()))
|
||||
.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
|
||||
|
@ -1156,8 +1156,8 @@ impl Service {
|
|||
.useridprofilekey_value
|
||||
.stream_prefix(&prefix)
|
||||
.ignore_err()
|
||||
.then(async |((_, key), value): KeyVal<'_>| {
|
||||
let value = self.parse_profile_kv(user_id, &key, value.to_vec()).await?;
|
||||
.map(|((_, key), value): KeyVal<'_>| {
|
||||
let value = self.parse_profile_kv(user_id, &key, value.to_vec())?;
|
||||
Ok((key, value))
|
||||
})
|
||||
.ignore_err()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue