diff options
author | Erik Johnston <erik@matrix.org> | 2016-08-19 15:13:58 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-08-19 15:13:58 +0100 |
commit | c0d7d9d6429584f51a8174a331e72a894009f3c8 (patch) | |
tree | 48d2492257b567979d2206351371e4cacc4aa890 /synapse/storage | |
parent | Make cache_context an explicit option (diff) | |
download | synapse-c0d7d9d6429584f51a8174a331e72a894009f3c8.tar.xz |
Rename to on_invalidate
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/push_rule.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/push_rule.py b/synapse/storage/push_rule.py index 247dd15694..78334a98cf 100644 --- a/synapse/storage/push_rule.py +++ b/synapse/storage/push_rule.py @@ -156,14 +156,14 @@ class PushRuleStore(SQLBaseStore): # users in the room who have pushers need to get push rules run because # that's how their pushers work if_users_with_pushers = yield self.get_if_users_have_pushers( - local_users_in_room, cache_context=cache_context, + local_users_in_room, on_invalidate=cache_context.invalidate, ) user_ids = set( uid for uid, have_pusher in if_users_with_pushers.items() if have_pusher ) users_with_receipts = yield self.get_users_with_read_receipts_in_room( - room_id, cache_context=cache_context, + room_id, on_invalidate=cache_context.invalidate, ) # any users with pushers must be ours: they have pushers @@ -172,7 +172,7 @@ class PushRuleStore(SQLBaseStore): user_ids.add(uid) rules_by_user = yield self.bulk_get_push_rules( - user_ids, cache_context=cache_context + user_ids, on_invalidate=cache_context.invalidate, ) rules_by_user = {k: v for k, v in rules_by_user.items() if v is not None} |