mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-10 21:02:50 +02:00
eliminate future wrapping stream for all_pdus()
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
8e8c6bfe07
commit
de3b137df8
3 changed files with 11 additions and 9 deletions
|
@ -220,7 +220,7 @@ impl Data {
|
|||
|
||||
pub(super) async fn pdus<'a>(
|
||||
&'a self, user_id: Option<&'a UserId>, room_id: &'a RoomId, from: PduCount,
|
||||
) -> Result<impl Stream<Item = PdusIterItem> + Send + 'a> {
|
||||
) -> Result<impl Stream<Item = PdusIterItem> + Send + Unpin + 'a> {
|
||||
let current = self.count_to_id(room_id, from, Direction::Forward).await?;
|
||||
let prefix = current.shortroomid();
|
||||
let stream = self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue