Rearrange persist_event so that do all the queries that need to be done before returning early if we have already persisted that event.

This commit is contained in:
Erik Johnston 2015-02-04 10:16:51 +00:00
parent 02be8da5e1
commit c0462dbf15
3 changed files with 77 additions and 72 deletions

View file

@ -515,6 +515,8 @@ class FederationHandler(BaseHandler):
"Failed to get destination from event %s", s.event_id
)
destinations.remove(origin)
logger.debug(
"on_send_join_request: Sending event: %s, signatures: %s",
event.event_id,