Avoid checking the event cache when backfilling events (#14164)

This commit is contained in:
Andrew Morgan 2022-10-18 10:33:35 +01:00 committed by GitHub
parent 828b5502cf
commit dc02d9f8c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 140 additions and 15 deletions

View file

@ -374,7 +374,7 @@ class EventsWorkerStore(SQLBaseStore):
If there is a mismatch, behave as per allow_none.
Returns:
The event, or None if the event was not found.
The event, or None if the event was not found and allow_none is `True`.
"""
if not isinstance(event_id, str):
raise TypeError("Invalid event event_id %r" % (event_id,))