summary refs log tree commit diff
path: root/synapse/storage/databases
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2022-10-18 10:33:35 +0100
committerGitHub <noreply@github.com>2022-10-18 10:33:35 +0100
commitdc02d9f8c54576d4b41ce51a2704fdd43b582d66 (patch)
treed42ad315505955bb541aaf86b72385e6269484e4 /synapse/storage/databases
parentRemove `_get_events_cache` check optimisation from `_have_seen_events_dict` (... (diff)
downloadsynapse-dc02d9f8c54576d4b41ce51a2704fdd43b582d66.tar.xz
Avoid checking the event cache when backfilling events (#14164)
Diffstat (limited to 'synapse/storage/databases')
-rw-r--r--synapse/storage/databases/main/events_worker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/events_worker.py b/synapse/storage/databases/main/events_worker.py
index cfd4780add..7bc7f2f33e 100644
--- a/synapse/storage/databases/main/events_worker.py
+++ b/synapse/storage/databases/main/events_worker.py
@@ -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,))