0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 17:44:01 +01:00

Fix replication

This commit is contained in:
Erik Johnston 2017-06-09 16:40:52 +01:00
parent b0d975e216
commit 8060974344
2 changed files with 2 additions and 2 deletions

View file

@ -108,7 +108,7 @@ class SlavedEventStore(BaseSlavedStore):
get_current_state_ids = (
StateStore.__dict__["get_current_state_ids"]
)
get_state_group_delta = DataStore.get_state_group_delta.__func__
get_state_group_delta = StateStore.__dict__["get_state_group_delta"]
_get_joined_hosts_cache = RoomMemberStore.__dict__["_get_joined_hosts_cache"]
has_room_changed_since = DataStore.has_room_changed_since.__func__

View file

@ -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):