diff options
author | Erik Johnston <erik@matrix.org> | 2018-04-12 11:20:51 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-04-12 11:20:51 +0100 |
commit | 23a7f9d7f4cfbf0333a1def526a59fb4b0f01067 (patch) | |
tree | 419a1bca6b2fc88cf45c1a302acee78fa2391dbf /synapse | |
parent | s/list/tuple (diff) | |
download | synapse-23a7f9d7f4cfbf0333a1def526a59fb4b0f01067.tar.xz |
Doc we raise on unknown event
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/storage/events_worker.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/storage/events_worker.py b/synapse/storage/events_worker.py index 769eb51489..88360b48b8 100644 --- a/synapse/storage/events_worker.py +++ b/synapse/storage/events_worker.py @@ -52,13 +52,14 @@ _EventCacheEntry = namedtuple("_EventCacheEntry", ("event", "redacted_event")) class EventsWorkerStore(SQLBaseStore): def get_received_ts(self, event_id): - """Get received_ts (when it was persisted) for the event + """Get received_ts (when it was persisted) for the event. Raises an + exception for unknown events. Args: event_id (str) Returns: - Deferred[int|None]: Timstamp in milliseconds, or None for events + Deferred[int|None]: Timestamp in milliseconds, or None for events that were persisted before received_ts was implemented. """ return self._simple_select_one_onecol( |