mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-28 21:22:02 +00:00
Don't prefill account data
This commit is contained in:
parent
3d60686c0c
commit
b5dbced938
@ -132,15 +132,8 @@ class DataStore(RoomMemberStore, RoomStore,
|
|||||||
)
|
)
|
||||||
|
|
||||||
account_max = self._account_data_id_gen.get_max_token(None)
|
account_max = self._account_data_id_gen.get_max_token(None)
|
||||||
account_cache_prefill, min_acc_val = self._get_cache_dict(
|
|
||||||
db_conn, "account_data",
|
|
||||||
entity_column="user_id",
|
|
||||||
stream_column="stream_id",
|
|
||||||
max_value=account_max,
|
|
||||||
)
|
|
||||||
self._account_data_stream_cache = StreamChangeCache(
|
self._account_data_stream_cache = StreamChangeCache(
|
||||||
"AccountDataAndTagsChangeCache", min_acc_val,
|
"AccountDataAndTagsChangeCache", account_max,
|
||||||
prefilled_cache=account_cache_prefill,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
super(DataStore, self).__init__(hs)
|
super(DataStore, self).__init__(hs)
|
||||||
|
Loading…
Reference in New Issue
Block a user