-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Conversation
95fc18a
to
a1702ed
Compare
a1702ed
to
f793bc3
Compare
limit = max(limit, MAX_STREAM_SIZE) | ||
else: | ||
limit = MAX_STREAM_SIZE | ||
class StreamWorkerStore(EventsWorkerStore, SQLBaseStore): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the other abstract worker stores, you've documented the methods that need to be implemented. Could do it here too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(done)
synapse/storage/stream.py
Outdated
@@ -552,11 +421,13 @@ def get_room_events_max_id(self, room_id=None): | |||
) | |||
defer.returnValue("t%d-%d" % (topo, token)) | |||
|
|||
@abc.abstractmethod | |||
def get_room_max_stream_ordering(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it might be more obvious if these were near the top of the class (with some comments about what they do...)
synapse/storage/__init__.py
Outdated
@@ -148,14 +148,6 @@ def __init__(self, db_conn, hs): | |||
stream_column="stream_ordering", | |||
max_value=events_max, | |||
) | |||
self._events_stream_cache = StreamChangeCache( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the call to _get_cache_dict
redundant now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.