diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-04-17 18:30:53 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-04-20 10:25:56 +0100 |
commit | b1dfbc3c4015865ab9798e5911b614e82a3dca2c (patch) | |
tree | 2fc5ce7b11efbc46e20c08e4a7e314e969f03bfe /synapse/federation | |
parent | fix spurious changelog dup (diff) | |
download | synapse-b1dfbc3c4015865ab9798e5911b614e82a3dca2c.tar.xz |
Refactor store.have_events
It turns out that most of the time we were calling have_events, we were only using half of the result. Replace have_events with have_seen_events and get_rejection_reasons, so that we can see what's going on a bit more clearly.
Diffstat (limited to 'synapse/federation')
-rw-r--r-- | synapse/federation/federation_client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py index 38440da5b5..8e2c0c4cd2 100644 --- a/synapse/federation/federation_client.py +++ b/synapse/federation/federation_client.py @@ -394,7 +394,7 @@ class FederationClient(FederationBase): seen_events = yield self.store.get_events(event_ids, allow_rejected=True) signed_events = seen_events.values() else: - seen_events = yield self.store.have_events(event_ids) + seen_events = yield self.store.have_seen_events(event_ids) signed_events = [] failed_to_fetch = set() |