diff options
author | Erik Johnston <erik@matrix.org> | 2020-08-19 13:41:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-19 13:41:51 +0100 |
commit | c9c544cda5748ab106464a8f58031bd60d1aba7b (patch) | |
tree | fb46ee38e628eae7c417a2c19c64c28b30e8eb29 /synapse/rest | |
parent | Switch the JSON byte producer from a pull to a push producer. (#8116) (diff) | |
download | synapse-c9c544cda5748ab106464a8f58031bd60d1aba7b.tar.xz |
Remove `ChainedIdGenerator`. (#8123)
It's just a thin wrapper around two ID gens to make `get_current_token` and `get_next` return tuples. This can easily be replaced by calling the appropriate methods on the underlying ID gens directly.
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/client/v1/push_rule.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/push_rule.py b/synapse/rest/client/v1/push_rule.py index e2df638cc5..e781a3bcf4 100644 --- a/synapse/rest/client/v1/push_rule.py +++ b/synapse/rest/client/v1/push_rule.py @@ -159,7 +159,7 @@ class PushRuleRestServlet(RestServlet): return 200, {} def notify_user(self, user_id): - stream_id, _ = self.store.get_push_rules_stream_token() + stream_id = self.store.get_max_push_rules_stream_id() self.notifier.on_new_event("push_rules_key", stream_id, users=[user_id]) async def set_rule_attr(self, user_id, spec, val): |