mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
fix service/pdu events
This commit is contained in:
parent
7392880bf8
commit
42e397203a
1 changed files with 2 additions and 2 deletions
|
|
@ -474,8 +474,8 @@ pub(crate) fn gen_event_id_canonical_json(
|
||||||
room_version_id: &RoomVersionId,
|
room_version_id: &RoomVersionId,
|
||||||
) -> crate::Result<(OwnedEventId, CanonicalJsonObject)> {
|
) -> crate::Result<(OwnedEventId, CanonicalJsonObject)> {
|
||||||
let value: CanonicalJsonObject =
|
let value: CanonicalJsonObject =
|
||||||
serde_json::from_str(pdu.get()).map_err(|e| {
|
serde_json::from_str(pdu.get()).map_err(|error| {
|
||||||
warn!("Error parsing incoming event {:?}: {:?}", pdu, e);
|
warn!(%error, object = ?pdu, "Error parsing incoming event");
|
||||||
Error::BadServerResponse("Invalid PDU in server response")
|
Error::BadServerResponse("Invalid PDU in server response")
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue