diff options
author | Erik Johnston <erik@matrix.org> | 2019-12-20 10:32:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-20 10:32:02 +0000 |
commit | fa780e9721c940479a72eed9877ccad4fef78160 (patch) | |
tree | 2953c373ed13a1b72d4bb3a827db280c2087870c /synapse/push | |
parent | Explode on duplicate delta file names. (#6565) (diff) | |
download | synapse-fa780e9721c940479a72eed9877ccad4fef78160.tar.xz |
Change EventContext to use the Storage class (#6564)
Diffstat (limited to 'synapse/push')
-rw-r--r-- | synapse/push/bulk_push_rule_evaluator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/push/bulk_push_rule_evaluator.py b/synapse/push/bulk_push_rule_evaluator.py index 7881780760..7d9f5a38d9 100644 --- a/synapse/push/bulk_push_rule_evaluator.py +++ b/synapse/push/bulk_push_rule_evaluator.py @@ -116,7 +116,7 @@ class BulkPushRuleEvaluator(object): @defer.inlineCallbacks def _get_power_levels_and_sender_level(self, event, context): - prev_state_ids = yield context.get_prev_state_ids(self.store) + prev_state_ids = yield context.get_prev_state_ids() pl_event_id = prev_state_ids.get(POWER_KEY) if pl_event_id: # fastpath: if there's a power level event, that's all we need, and @@ -304,7 +304,7 @@ class RulesForRoom(object): push_rules_delta_state_cache_metric.inc_hits() else: - current_state_ids = yield context.get_current_state_ids(self.store) + current_state_ids = yield context.get_current_state_ids() push_rules_delta_state_cache_metric.inc_misses() push_rules_state_size_counter.inc(len(current_state_ids)) |