mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 12:16:54 +00:00
style: Remove needless async def for parse_incoming_pdu_with_known_room
This commit is contained in:
2 files changed
+3
-4
No files matched your search
@@ -384,9 +384,8 @@ impl super::Service {
|
||||
.send_federation_request(&remote, get_event::v1::Request::new(event_id.clone()))
|
||||
.await?;
|
||||
|
||||
let (calculated_event_id, value) = self
|
||||
.parse_incoming_pdu_with_known_room(&res.pdu, room_version_rules)
|
||||
.await?;
|
||||
let (calculated_event_id, value) =
|
||||
self.parse_incoming_pdu_with_known_room(&res.pdu, room_version_rules)?;
|
||||
|
||||
if calculated_event_id != event_id {
|
||||
Err!(Request(BadJson(warn!(
|
||||
|
||||
@@ -105,7 +105,7 @@ impl super::Service {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn parse_incoming_pdu_with_known_room(
|
||||
pub(super) fn parse_incoming_pdu_with_known_room(
|
||||
&self,
|
||||
pdu: &RawJsonValue,
|
||||
room_version_rules: &RoomVersionRules,
|
||||
|
||||
Reference in new issue
Block a user