From bceb4e08f1f3b5cdeb978a4c179f315641140ebc Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Wed, 9 Oct 2024 18:51:28 -0500 Subject: [PATCH] Fix lints --- synapse/storage/databases/main/cache.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/synapse/storage/databases/main/cache.py b/synapse/storage/databases/main/cache.py index 7143e36be9..0ec33f7818 100644 --- a/synapse/storage/databases/main/cache.py +++ b/synapse/storage/databases/main/cache.py @@ -219,9 +219,9 @@ class CacheInvalidationWorkerStore(SQLBaseStore): room_id = row.keys[0] members_changed = set(row.keys[1:]) self._invalidate_state_caches(room_id, members_changed) - self._curr_state_delta_stream_cache.entity_has_changed( + self._curr_state_delta_stream_cache.entity_has_changed( # type: ignore[attr-defined] room_id, token - ) # type: ignore[attr-defined] + ) for user_id in members_changed: self._membership_stream_cache.entity_has_changed(user_id, token) # type: ignore[attr-defined] elif row.cache_func == PURGE_HISTORY_CACHE_NAME: @@ -241,9 +241,9 @@ class CacheInvalidationWorkerStore(SQLBaseStore): room_id = row.keys[0] self._invalidate_caches_for_room_events(room_id) self._invalidate_caches_for_room(room_id) - self._curr_state_delta_stream_cache.entity_has_changed( + self._curr_state_delta_stream_cache.entity_has_changed( # type: ignore[attr-defined] room_id, token - ) # type: ignore[attr-defined] + ) self._membership_stream_cache.all_entities_changed(token) # type: ignore[attr-defined] else: self._attempt_to_invalidate_cache(row.cache_func, row.keys)