mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2025-12-12 10:18:57 -05: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
|
|
@ -53,7 +53,7 @@ impl Data {
|
|||
let parsed = self
|
||||
.services
|
||||
.state_compressor
|
||||
.parse_compressed_state_event(compressed)
|
||||
.parse_compressed_state_event(*compressed)
|
||||
.await?;
|
||||
|
||||
result.insert(parsed.0, parsed.1);
|
||||
|
|
@ -86,7 +86,7 @@ impl Data {
|
|||
let (_, eventid) = self
|
||||
.services
|
||||
.state_compressor
|
||||
.parse_compressed_state_event(compressed)
|
||||
.parse_compressed_state_event(*compressed)
|
||||
.await?;
|
||||
|
||||
if let Ok(pdu) = self.services.timeline.get_pdu(&eventid).await {
|
||||
|
|
@ -132,7 +132,7 @@ impl Data {
|
|||
|
||||
self.services
|
||||
.state_compressor
|
||||
.parse_compressed_state_event(compressed)
|
||||
.parse_compressed_state_event(*compressed)
|
||||
.map_ok(|(_, id)| id)
|
||||
.map_err(|e| {
|
||||
err!(Database(error!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue