diff options
author | Shay <hillerys@element.io> | 2022-10-12 11:01:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-12 11:01:00 -0700 |
commit | b6baa46db078c3ef9e6c5751bccb8d2e1c5c5402 (patch) | |
tree | ea875cfe0e2023373822f81ed0ac6d681b25c3eb /synapse/handlers/federation_event.py | |
parent | Return the thread ID properly down sync. (#14159) (diff) | |
download | synapse-b6baa46db078c3ef9e6c5751bccb8d2e1c5c5402.tar.xz |
Fix a bug where the joined hosts for a given event were not being properly cached (#14125)
Diffstat (limited to 'synapse/handlers/federation_event.py')
-rw-r--r-- | synapse/handlers/federation_event.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/federation_event.py b/synapse/handlers/federation_event.py index da319943cc..f382961099 100644 --- a/synapse/handlers/federation_event.py +++ b/synapse/handlers/federation_event.py @@ -414,7 +414,9 @@ class FederationEventHandler: # First, precalculate the joined hosts so that the federation sender doesn't # need to. - await self._event_creation_handler.cache_joined_hosts_for_event(event, context) + await self._event_creation_handler.cache_joined_hosts_for_events( + [(event, context)] + ) await self._check_for_soft_fail(event, context=context, origin=origin) await self._run_push_actions_and_persist_event(event, context) |