diff options
author | Erik Johnston <erik@matrix.org> | 2019-02-25 14:42:11 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-02-25 14:42:11 +0000 |
commit | 890cb048fdbb05bcd8b80d3038f4811a1fdfe9f0 (patch) | |
tree | a57e272dc4fac10d5bda9927bb595d292b6b3d8c /synapse | |
parent | Newsfile (diff) | |
download | synapse-890cb048fdbb05bcd8b80d3038f4811a1fdfe9f0.tar.xz |
Assert rather than clobber the values
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/handlers/federation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index fbf044b407..8e6d0a3bbc 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -804,7 +804,7 @@ class FederationHandler(BaseHandler): # For paranoia we ensure that these events are marked as # non-outliers ev = event_map[e_id] - ev.internal_metadata.outlier = False + assert(not event.internal_metadata.is_outlier()) ev_infos.append({ "event": ev, @@ -830,7 +830,7 @@ class FederationHandler(BaseHandler): # For paranoia we ensure that these events are marked as # non-outliers - event.internal_metadata.outlier = False + assert(not event.internal_metadata.is_outlier()) # We store these one at a time since each event depends on the # previous to work out the state. |