mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-09-28 21:19:29 -04:00
Fix get_pdu
asking every remote destination even after it finds an event (#13346)
This commit is contained in:
parent
bf3115584c
commit
4f3082d6bf
2 changed files with 4 additions and 3 deletions
|
@ -403,9 +403,9 @@ class FederationClient(FederationBase):
|
|||
# Prime the cache
|
||||
self._get_pdu_cache[event.event_id] = event
|
||||
|
||||
# FIXME: We should add a `break` here to avoid calling every
|
||||
# destination after we already found a PDU (will follow-up
|
||||
# in a separate PR)
|
||||
# Now that we have an event, we can break out of this
|
||||
# loop and stop asking other destinations.
|
||||
break
|
||||
|
||||
except SynapseError as e:
|
||||
logger.info(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue