diff options
author | Erik Johnston <erik@matrix.org> | 2014-12-16 18:33:50 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-12-16 18:33:50 +0000 |
commit | 52f99243ab0eef93558ddc95b744c548241057ac (patch) | |
tree | fd417ec5ffaff3980b5d7a63a69c859a89527788 /synapse/federation | |
parent | Don't assume an event exists (diff) | |
download | synapse-52f99243ab0eef93558ddc95b744c548241057ac.tar.xz |
Use is_outlier() so that we don't get AttributeError
Diffstat (limited to 'synapse/federation')
-rw-r--r-- | synapse/federation/replication.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/federation/replication.py b/synapse/federation/replication.py index 9f8aadccca..ec9b6e246b 100644 --- a/synapse/federation/replication.py +++ b/synapse/federation/replication.py @@ -562,8 +562,8 @@ class ReplicationLayer(object): already_seen = ( existing and ( - not existing.internal_metadata.outlier - or pdu.internal_metadata.outlier + not existing.internal_metadata.is_outlier() + or pdu.internal_metadata.is_outlier() ) ) if already_seen: @@ -604,7 +604,7 @@ class ReplicationLayer(object): # ) # Get missing pdus if necessary. - if not pdu.internal_metadata.outlier: + if not pdu.internal_metadata.is_outlier(): # We only backfill backwards to the min depth. min_depth = yield self.handler.get_min_depth_for_context( pdu.room_id |