mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 12:46:49 +00:00
Refactor to async closures.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
cca0f20148
commit
c8d35cca57
36 files changed
+78
-80
No files matched your search
@@ -151,9 +151,7 @@ pub(crate) async fn get_message_events_route(
|
||||
.map(IterStream::stream)
|
||||
.into_stream()
|
||||
.flatten()
|
||||
.broad_filter_map(|user_id| async move {
|
||||
get_member_event(&services, room_id, &user_id).await
|
||||
})
|
||||
.broad_filter_map(async |user_id| get_member_event(&services, room_id, &user_id).await)
|
||||
.collect()
|
||||
.await;
|
||||
|
||||
|
||||
Reference in new issue
Block a user