mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
fix: Remove needless async marker
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user