mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-22 01:54:58 -05:00
Doc we raise on unknown event
This commit is contained in:
parent
d7bf3a68f0
commit
23a7f9d7f4
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user