Fix lints

This commit is contained in:
Eric Eastwood 2024-10-09 18:51:28 -05:00
parent 7c53716bc1
commit bceb4e08f1

View file

@ -219,9 +219,9 @@ class CacheInvalidationWorkerStore(SQLBaseStore):
room_id = row.keys[0] room_id = row.keys[0]
members_changed = set(row.keys[1:]) members_changed = set(row.keys[1:])
self._invalidate_state_caches(room_id, members_changed) 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 room_id, token
) # type: ignore[attr-defined] )
for user_id in members_changed: for user_id in members_changed:
self._membership_stream_cache.entity_has_changed(user_id, token) # type: ignore[attr-defined] self._membership_stream_cache.entity_has_changed(user_id, token) # type: ignore[attr-defined]
elif row.cache_func == PURGE_HISTORY_CACHE_NAME: elif row.cache_func == PURGE_HISTORY_CACHE_NAME:
@ -241,9 +241,9 @@ class CacheInvalidationWorkerStore(SQLBaseStore):
room_id = row.keys[0] room_id = row.keys[0]
self._invalidate_caches_for_room_events(room_id) self._invalidate_caches_for_room_events(room_id)
self._invalidate_caches_for_room(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 room_id, token
) # type: ignore[attr-defined] )
self._membership_stream_cache.all_entities_changed(token) # type: ignore[attr-defined] self._membership_stream_cache.all_entities_changed(token) # type: ignore[attr-defined]
else: else:
self._attempt_to_invalidate_cache(row.cache_func, row.keys) self._attempt_to_invalidate_cache(row.cache_func, row.keys)