diff options
author | Erik Johnston <erik@matrix.org> | 2015-06-03 16:06:39 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-06-03 16:44:24 +0100 |
commit | 55bf90b9e458c6adbbd0e82403f9da06da95a812 (patch) | |
tree | d717ebff3d547e2341483b13730b681fe980686d /synapse/state.py | |
parent | Log where a request came from in federation (diff) | |
download | synapse-55bf90b9e458c6adbbd0e82403f9da06da95a812.tar.xz |
Don't needlessly compute prev_state
Diffstat (limited to 'synapse/state.py')
-rw-r--r-- | synapse/state.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/synapse/state.py b/synapse/state.py index 9dddb77d5b..d4d8930001 100644 --- a/synapse/state.py +++ b/synapse/state.py @@ -155,10 +155,6 @@ class StateHandler(object): context.current_state = curr_state context.state_group = group if not event.is_state() else None - prev_state = yield self.store.add_event_hashes( - prev_state - ) - if event.is_state(): key = (event.type, event.state_key) if key in context.current_state: |