Skip to content
Snippets Groups Projects
Commit 890cb048 authored by Erik Johnston's avatar Erik Johnston
Browse files

Assert rather than clobber the values

parent f5050e14
No related branches found
No related tags found
No related merge requests found
...@@ -804,7 +804,7 @@ class FederationHandler(BaseHandler): ...@@ -804,7 +804,7 @@ class FederationHandler(BaseHandler):
# For paranoia we ensure that these events are marked as # For paranoia we ensure that these events are marked as
# non-outliers # non-outliers
ev = event_map[e_id] ev = event_map[e_id]
ev.internal_metadata.outlier = False assert(not event.internal_metadata.is_outlier())
ev_infos.append({ ev_infos.append({
"event": ev, "event": ev,
...@@ -830,7 +830,7 @@ class FederationHandler(BaseHandler): ...@@ -830,7 +830,7 @@ class FederationHandler(BaseHandler):
# For paranoia we ensure that these events are marked as # For paranoia we ensure that these events are marked as
# non-outliers # 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 # We store these one at a time since each event depends on the
# previous to work out the state. # previous to work out the state.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment