mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 20:26:52 +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
@@ -64,7 +64,7 @@ pub(crate) async fn get_backfill_route(
|
||||
.timeline
|
||||
.pdus_rev(None, &body.room_id, Some(from.saturating_add(1)))
|
||||
.try_take(limit)
|
||||
.try_filter_map(|(_, pdu)| async move {
|
||||
.try_filter_map(async |(_, pdu)| {
|
||||
Ok(services
|
||||
.rooms
|
||||
.state_accessor
|
||||
@@ -72,7 +72,7 @@ pub(crate) async fn get_backfill_route(
|
||||
.await
|
||||
.then_some(pdu))
|
||||
})
|
||||
.try_filter_map(|pdu| async move {
|
||||
.try_filter_map(async |pdu| {
|
||||
Ok(services
|
||||
.rooms
|
||||
.timeline
|
||||
|
||||
Reference in new issue
Block a user