Skip to content
Snippets Groups Projects
Commit 28223841 authored by Richard van der Hoff's avatar Richard van der Hoff
Browse files

more comments

parent ad8e1370
No related branches found
No related tags found
No related merge requests found
...@@ -209,8 +209,6 @@ class FederationClient(FederationBase): ...@@ -209,8 +209,6 @@ class FederationClient(FederationBase):
Will attempt to get the PDU from each destination in the list until Will attempt to get the PDU from each destination in the list until
one succeeds. one succeeds.
This will persist the PDU locally upon receipt.
Args: Args:
destinations (list): Which home servers to query destinations (list): Which home servers to query
event_id (str): event to fetch event_id (str): event to fetch
......
...@@ -341,10 +341,9 @@ class FederationHandler(BaseHandler): ...@@ -341,10 +341,9 @@ class FederationHandler(BaseHandler):
) )
with logcontext.nested_logging_context(p): with logcontext.nested_logging_context(p):
# XXX if any of the missing prevs share missing state or auth # note that if any of the missing prevs share missing state or
# events, we'll end up requesting those missing events for # auth events, the requests to fetch those events are deduped
# *each* missing prev, contributing to the hammering of /event # by the get_pdu_cache in federation_client.
# as per https://github.com/matrix-org/synapse/issues/2164.
remote_state, got_auth_chain = ( remote_state, got_auth_chain = (
yield self.federation_client.get_state_for_room( yield self.federation_client.get_state_for_room(
origin, room_id, p, origin, room_id, p,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment