Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Don't duplicate invalidate local call on get event cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Jul 14, 2022
1 parent 037d84f commit ec33b99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synapse/storage/databases/main/events_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,8 @@ async def get_missing_events_from_db() -> Dict[str, EventCacheEntry]:

async def _invalidate_get_event_cache(self, event_id: str) -> None:
await self._get_event_cache.invalidate((event_id,))
self._invalidate_local_get_event_cache(event_id)
self._event_ref.pop(event_id, None)
self._current_event_fetches.pop(event_id, None)

def _invalidate_local_get_event_cache(self, event_id: str) -> None:
self._get_event_cache.invalidate_local((event_id,))
Expand Down

0 comments on commit ec33b99

Please sign in to comment.