diff options
author | Erik Johnston <erik@matrix.org> | 2018-03-22 11:42:16 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-03-22 11:42:16 +0000 |
commit | fde8e8f09fb0e62d4670e33b75319b5bd57f484f (patch) | |
tree | 55bb691d8657ca6ad8f5dc17f9b8f532b17bce2d /synapse | |
parent | Use .iter* to avoid copies in StateHandler (diff) | |
download | synapse-fde8e8f09fb0e62d4670e33b75319b5bd57f484f.tar.xz |
Fix s/iteriterms/itervalues
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/state.py | 2 |
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 |