mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-27 08:55:35 -04:00
Remove remaining pieces of groups code. (#12966)
* Remove an unused stream ID generator. * Remove the now unused remote profile cache.
This commit is contained in:
parent
44de53bb79
commit
f7baffd8ec
8 changed files with 6 additions and 209 deletions
|
@ -151,10 +151,6 @@ class DataStore(
|
|||
],
|
||||
)
|
||||
|
||||
self._group_updates_id_gen = StreamIdGenerator(
|
||||
db_conn, "local_group_updates", "stream_id"
|
||||
)
|
||||
|
||||
self._cache_id_gen: Optional[MultiWriterIdGenerator]
|
||||
if isinstance(self.database_engine, PostgresEngine):
|
||||
# We set the `writers` to an empty list here as we don't care about
|
||||
|
@ -197,20 +193,6 @@ class DataStore(
|
|||
prefilled_cache=curr_state_delta_prefill,
|
||||
)
|
||||
|
||||
_group_updates_prefill, min_group_updates_id = self.db_pool.get_cache_dict(
|
||||
db_conn,
|
||||
"local_group_updates",
|
||||
entity_column="user_id",
|
||||
stream_column="stream_id",
|
||||
max_value=self._group_updates_id_gen.get_current_token(),
|
||||
limit=1000,
|
||||
)
|
||||
self._group_updates_stream_cache = StreamChangeCache(
|
||||
"_group_updates_stream_cache",
|
||||
min_group_updates_id,
|
||||
prefilled_cache=_group_updates_prefill,
|
||||
)
|
||||
|
||||
self._stream_order_on_start = self.get_room_max_stream_ordering()
|
||||
self._min_stream_order_on_start = self.get_room_min_stream_ordering()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue