mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 05:09:24 -05:00
Assert rather than clobber the values
This commit is contained in:
parent
f5050e148c
commit
890cb048fd
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user