mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 11:24:10 -04:00
Explain SynapseError
and FederationError
better (#14191)
Explain `SynapseError` and `FederationError` better Spawning from https://github.com/matrix-org/synapse/pull/13816#discussion_r993262622
This commit is contained in:
parent
3841900aaa
commit
70b3396506
3 changed files with 30 additions and 3 deletions
|
@ -481,6 +481,14 @@ class FederationServer(FederationBase):
|
|||
pdu_results[pdu.event_id] = await process_pdu(pdu)
|
||||
|
||||
async def process_pdu(pdu: EventBase) -> JsonDict:
|
||||
"""
|
||||
Processes a pushed PDU sent to us via a `/send` transaction
|
||||
|
||||
Returns:
|
||||
JsonDict representing a "PDU Processing Result" that will be bundled up
|
||||
with the other processed PDU's in the `/send` transaction and sent back
|
||||
to remote homeserver.
|
||||
"""
|
||||
event_id = pdu.event_id
|
||||
with nested_logging_context(event_id):
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue