mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -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
1
changelog.d/13346.misc
Normal file
1
changelog.d/13346.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix long-standing bugged logic which was never hit in `get_pdu` asking every remote destination even after it finds an event.
|
@ -403,9 +403,9 @@ class FederationClient(FederationBase):
|
|||||||
# Prime the cache
|
# Prime the cache
|
||||||
self._get_pdu_cache[event.event_id] = event
|
self._get_pdu_cache[event.event_id] = event
|
||||||
|
|
||||||
# FIXME: We should add a `break` here to avoid calling every
|
# Now that we have an event, we can break out of this
|
||||||
# destination after we already found a PDU (will follow-up
|
# loop and stop asking other destinations.
|
||||||
# in a separate PR)
|
break
|
||||||
|
|
||||||
except SynapseError as e:
|
except SynapseError as e:
|
||||||
logger.info(
|
logger.info(
|
||||||
|
Loading…
Reference in New Issue
Block a user