-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Conversation
@@ -191,6 +190,7 @@ def user_last_seen_monthly_active(self, user_id): | |||
allow_none=True, | |||
desc="user_last_seen_monthly_active", | |||
)) | |||
defer.returnValue(res) |
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.
What's the reason for converting all these functions to defer.inlineCallbacks?
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.
me trying things and inadvertently committing it :) -- reverted
synapse/storage/_base.py
Outdated
) | ||
self.clock = self.hs.get_clock() | ||
else: | ||
self._cache_id_gen = None |
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.
So, fun fact: this now gets set on the slave replication stores as well as the store on master. This is a bit awkward because we do set self._cache_id_gen
on the replication stores in synapse/replication/slave/storage/_base.py
to something different.
In short, everything is awful and is scary and I'm scared about moving this here in case the replication stuff fail to properly overwrite this definition
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.
This looks legit. I've not gone through all the test changes, but they seem sane.
No description provided.