summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-06-09 16:40:52 +0100
committerErik Johnston <erik@matrix.org>2017-06-09 16:40:52 +0100
commit80609743440467a69c4bdcd111c60d84f617d6c4 (patch)
tree423ac506015b9c985a9a9d934463db629fbd829e /synapse/storage
parentComments (diff)
downloadsynapse-80609743440467a69c4bdcd111c60d84f617d6c4.tar.xz
Fix replication
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index 24503cd5aa..d1e679719b 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -37,7 +37,7 @@ class _GetStateGroupDelta(namedtuple("_GetStateGroupDelta", ("prev_group", "delt
     __slots__ = []
 
     def __len__(self):
-        return len(self.delta_ids) if self.delta_ids else None
+        return len(self.delta_ids) if self.delta_ids else 0
 
 
 class StateStore(SQLBaseStore):