summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-03-22 11:42:16 +0000
committerErik Johnston <erik@matrix.org>2018-03-22 11:42:16 +0000
commitfde8e8f09fb0e62d4670e33b75319b5bd57f484f (patch)
tree55bb691d8657ca6ad8f5dc17f9b8f532b17bce2d /synapse
parentUse .iter* to avoid copies in StateHandler (diff)
downloadsynapse-fde8e8f09fb0e62d4670e33b75319b5bd57f484f.tar.xz
Fix s/iteriterms/itervalues
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 18386556ae..a7f20350f1 100644
--- a/synapse/state.py
+++ b/synapse/state.py
@@ -488,7 +488,7 @@ class StateResolutionHandler(object):
             # which will be used as a cache key for future resolutions, but
             # not get persisted.
             state_group = None
-            new_state_event_ids = frozenset(new_state.iteritems())
+            new_state_event_ids = frozenset(new_state.itervalues())
             for sg, events in state_groups_ids.iteritems():
                 if new_state_event_ids == frozenset(e_id for e_id in events):
                     state_group = sg