diff options
author | Erik Johnston <erik@matrix.org> | 2015-08-12 17:08:05 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-08-12 17:08:05 +0100 |
commit | 101ee3fd0022162da2ea2dc3f1b1846a08e21f9e (patch) | |
tree | d2d73054b868b9c7382757ed51d31060649079e9 /synapse/storage/state.py | |
parent | Split _get_state_for_group_from_cache into two (diff) | |
download | synapse-101ee3fd0022162da2ea2dc3f1b1846a08e21f9e.tar.xz |
Better variable name
Diffstat (limited to 'synapse/storage/state.py')
-rw-r--r-- | synapse/storage/state.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py index 1293842361..a3fc859b06 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py @@ -385,12 +385,12 @@ class StateStore(SQLBaseStore): if not missing_groups_and_types: defer.returnValue({ - k: { - key: ev - for key, ev in state.items() - if ev + group: { + type_tuple: event + for type_tuple, event in state.items() + if event } - for k, state in results.items() + for group, state in results.items() }) # Okay, so we have some missing_types, lets fetch them. |