Update comments

This commit is contained in:
Erik Johnston 2018-05-09 15:15:38 +01:00
parent 05e0a2462c
commit 75552d2148
1 changed files with 6 additions and 5 deletions

View File

@ -385,7 +385,7 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
Returns: Returns:
Deferred[tuple[list[_EventDictReturn], str]]: Returns a list of Deferred[tuple[list[_EventDictReturn], str]]: Returns a list of
_EventDictReturn and a token pointint to the start of the returned _EventDictReturn and a token pointing to the start of the returned
events. events.
The events returned are in ascending order. The events returned are in ascending order.
""" """
@ -514,7 +514,8 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
events (list[FrozenEvent]) events (list[FrozenEvent])
rows (list[_EventDictReturn]) rows (list[_EventDictReturn])
topo_order (bool): Whether the events were ordered topologically topo_order (bool): Whether the events were ordered topologically
or by stream ordering or by stream ordering. If true then all rows should have a non
null topological_ordering.
""" """
for event, row in zip(events, rows): for event, row in zip(events, rows):
stream = row.stream_ordering stream = row.stream_ordering
@ -692,9 +693,9 @@ class StreamWorkerStore(EventsWorkerStore, SQLBaseStore):
those that match the filter. those that match the filter.
Returns: Returns:
tuple[list[_EventDictReturn], str]: Returns the results as a list Deferred[tuple[list[_EventDictReturn], str]]: Returns the results
of _EventDictReturn and a token that points to the end of the as a list of _EventDictReturn and a token that points to the end
result set. of the result set.
""" """
# Tokens really represent positions between elements, but we use # Tokens really represent positions between elements, but we use
# the convention of pointing to the event before the gap. Hence # the convention of pointing to the event before the gap. Hence