diff options
author | Erik Johnston <erik@matrix.org> | 2016-09-01 14:31:26 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-09-01 14:31:26 +0100 |
commit | 9e25443db84f16bca36d1ba605e5b5ea09d1f8c7 (patch) | |
tree | 179aa723e4a166d498211a8081b804843b13bc89 /synapse/events/snapshot.py | |
parent | Use state_groups table to test existence (diff) | |
download | synapse-9e25443db84f16bca36d1ba605e5b5ea09d1f8c7.tar.xz |
Move to storing state_groups_state as deltas
Diffstat (limited to 'synapse/events/snapshot.py')
-rw-r--r-- | synapse/events/snapshot.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/synapse/events/snapshot.py b/synapse/events/snapshot.py index e895b1c450..ec32008d5a 100644 --- a/synapse/events/snapshot.py +++ b/synapse/events/snapshot.py @@ -15,9 +15,25 @@ class EventContext(object): + __slots__ = [ + "current_state_ids", + "prev_state_ids", + "state_group", + "rejected", + "push_actions", + "prev_group", + "delta_ids", + "prev_state_events", + ] + def __init__(self): self.current_state_ids = None self.prev_state_ids = None self.state_group = None self.rejected = False self.push_actions = [] + + self.prev_group = None + self.delta_ids = None + + self.prev_state_events = None |