mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-10 19:42:50 +02:00
style: Reformat and whatnot
This commit is contained in:
parent
327fa02cd9
commit
cfd68efb99
6 changed files with 8 additions and 15 deletions
|
@ -58,10 +58,8 @@ pub async fn handle_incoming_pdu<'a>(
|
|||
value: BTreeMap<String, CanonicalJsonValue>,
|
||||
is_timeline_event: bool,
|
||||
) -> Result<Option<RawPduId>> {
|
||||
if room_id.is_empty() {
|
||||
// TODO(hydra): Room IDs should be calculated before this function is called
|
||||
panic!("room ID cannot be empty");
|
||||
}
|
||||
// TODO(hydra): Room IDs should be calculated before this function is called
|
||||
assert!(!room_id.is_empty(), "room ID cannot be empty");
|
||||
// 1. Skip the PDU if we already have it as a timeline event
|
||||
if let Ok(pdu_id) = self.services.timeline.get_pdu_id(event_id).await {
|
||||
return Ok(Some(pdu_id));
|
||||
|
|
|
@ -16,7 +16,6 @@ use conduwuit_database::{Deserialized, Ignore, Interfix, Map};
|
|||
use futures::{
|
||||
FutureExt, Stream, StreamExt, TryFutureExt, TryStreamExt, future::join_all, pin_mut,
|
||||
};
|
||||
use log::trace;
|
||||
use ruma::{
|
||||
EventId, OwnedEventId, OwnedRoomId, RoomId, RoomVersionId, UserId,
|
||||
events::{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue