summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-06-09 16:25:42 +0100
committerErik Johnston <erik@matrix.org>2017-06-09 16:25:42 +0100
commitb0d975e21619b6eb1dbcf24a5ed68629298bfdce (patch)
tree8d75c1a8843386c9681694ef17da67c1f7e8dfca /synapse
parentCache state deltas (diff)
downloadsynapse-b0d975e21619b6eb1dbcf24a5ed68629298bfdce.tar.xz
Comments
Diffstat (limited to '')
-rw-r--r--synapse/storage/state.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index 0bea7374f7..24503cd5aa 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -31,6 +31,9 @@ MAX_STATE_DELTA_HOPS = 100
 
 
 class _GetStateGroupDelta(namedtuple("_GetStateGroupDelta", ("prev_group", "delta_ids"))):
+    """Return type of get_state_group_delta that implements __len__, which lets
+    us use the itrable flag when caching
+    """
     __slots__ = []
 
     def __len__(self):