diff options
author | Erik Johnston <erik@matrix.org> | 2017-06-09 16:25:42 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-06-09 16:25:42 +0100 |
commit | b0d975e21619b6eb1dbcf24a5ed68629298bfdce (patch) | |
tree | 8d75c1a8843386c9681694ef17da67c1f7e8dfca /synapse | |
parent | Cache state deltas (diff) | |
download | synapse-b0d975e21619b6eb1dbcf24a5ed68629298bfdce.tar.xz |
Comments
Diffstat (limited to '')
-rw-r--r-- | synapse/storage/state.py | 3 |
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): |