mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 16:44:48 -04:00
Remove outlier parameter from compute_event_context
Use event.internal_metadata.is_outlier instead.
This commit is contained in:
parent
03e406eefc
commit
dc4c1579d4
3 changed files with 7 additions and 11 deletions
|
@ -100,7 +100,7 @@ class StateHandler(object):
|
|||
defer.returnValue(state)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def compute_event_context(self, event, old_state=None, outlier=False):
|
||||
def compute_event_context(self, event, old_state=None):
|
||||
""" Fills out the context with the `current state` of the graph. The
|
||||
`current state` here is defined to be the state of the event graph
|
||||
just before the event - i.e. it never includes `event`
|
||||
|
@ -115,7 +115,7 @@ class StateHandler(object):
|
|||
"""
|
||||
context = EventContext()
|
||||
|
||||
if outlier:
|
||||
if event.internal_metadata.is_outlier():
|
||||
# If this is an outlier, then we know it shouldn't have any current
|
||||
# state. Certainly store.get_current_state won't return any, and
|
||||
# persisting the event won't store the state group.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue