mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-10 22:52:50 +02:00
refactor for stronger RawPduId type
implement standard traits for PduCount enable serde for arrayvec typedef various shortid's pducount simplifications split parts of pdu_metadata service to core/pdu and api/relations remove some yields; improve var names/syntax tweak types for limit timeline limit arguments Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
2e4d9cb37c
commit
9da523c004
41 changed files with 796 additions and 573 deletions
|
@ -2,7 +2,7 @@ mod data;
|
|||
|
||||
use std::{collections::BTreeMap, sync::Arc};
|
||||
|
||||
use conduit::{err, PduEvent, Result};
|
||||
use conduit::{err, PduCount, PduEvent, Result};
|
||||
use data::Data;
|
||||
use futures::Stream;
|
||||
use ruma::{
|
||||
|
@ -37,8 +37,8 @@ impl crate::Service for Service {
|
|||
|
||||
impl Service {
|
||||
pub async fn threads_until<'a>(
|
||||
&'a self, user_id: &'a UserId, room_id: &'a RoomId, until: u64, include: &'a IncludeThreads,
|
||||
) -> Result<impl Stream<Item = (u64, PduEvent)> + Send + 'a> {
|
||||
&'a self, user_id: &'a UserId, room_id: &'a RoomId, until: PduCount, include: &'a IncludeThreads,
|
||||
) -> Result<impl Stream<Item = (PduCount, PduEvent)> + Send + 'a> {
|
||||
self.db
|
||||
.threads_until(user_id, room_id, until, include)
|
||||
.await
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue