fix: Remove needless async marker

This commit is contained in:
Ginger
2025-09-16 11:30:39 +00:00
committed by nex
parent c9117e6ee4
commit d6b1055683
+4 -4
View File
@@ -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()