From d6b10556838b351deffc52fbcc3e57d6457d1728 Mon Sep 17 00:00:00 2001 From: Ginger Date: Sun, 14 Sep 2025 15:42:48 -0400 Subject: [PATCH] fix: Remove needless `async` marker --- src/service/users/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/service/users/mod.rs b/src/service/users/mod.rs index daeda6a5..1c69f0b7 100644 --- a/src/service/users/mod.rs +++ b/src/service/users/mod.rs @@ -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()