summary refs log tree commit diff
path: root/synapse/state.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-02-09 17:41:29 +0000
committerErik Johnston <erik@matrix.org>2015-02-09 17:41:29 +0000
commitd94f682a4c3e7bab5079d516582f0ee44a3d3f06 (patch)
tree432ab91b7141e927bdb582c2c364b7bc25e2f939 /synapse/state.py
parentMerge pull request #55 from matrix-org/profiling (diff)
downloadsynapse-d94f682a4c3e7bab5079d516582f0ee44a3d3f06.tar.xz
During room intial sync, only calculate current state once.
Diffstat (limited to '')
-rw-r--r--synapse/state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/state.py b/synapse/state.py
index 695a5e7ac4..54380b9e5c 100644
--- a/synapse/state.py
+++ b/synapse/state.py
@@ -76,7 +76,7 @@ class StateHandler(object):
             defer.returnValue(res[1].get((event_type, state_key)))
             return
 
-        defer.returnValue(res[1].values())
+        defer.returnValue(res[1])
 
     @defer.inlineCallbacks
     def compute_event_context(self, event, old_state=None):