summary refs log tree commit diff
path: root/synapse/storage/state.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-08-12 17:08:05 +0100
committerErik Johnston <erik@matrix.org>2015-08-12 17:08:05 +0100
commit101ee3fd0022162da2ea2dc3f1b1846a08e21f9e (patch)
treed2d73054b868b9c7382757ed51d31060649079e9 /synapse/storage/state.py
parentSplit _get_state_for_group_from_cache into two (diff)
downloadsynapse-101ee3fd0022162da2ea2dc3f1b1846a08e21f9e.tar.xz
Better variable name
Diffstat (limited to '')
-rw-r--r--synapse/storage/state.py10
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.