mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-29 15:39:00 +03:00
Add comment
This commit is contained in:
parent
66d8ffabbd
commit
056ba9b795
1 changed files with 3 additions and 0 deletions
|
@ -74,6 +74,9 @@ class BulkPushRuleEvaluator:
|
||||||
Returns:
|
Returns:
|
||||||
RulesForRoom
|
RulesForRoom
|
||||||
"""
|
"""
|
||||||
|
# It's important that RulesForRoom gets added to self._get_rules_for_room.cache
|
||||||
|
# before any lookup methods get called on it as otherwise there may be
|
||||||
|
# a race if invalidate_all gets called (which assumes its in the cache)
|
||||||
return RulesForRoom(self.hs, room_id, self._get_rules_for_room.cache)
|
return RulesForRoom(self.hs, room_id, self._get_rules_for_room.cache)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
|
|
Loading…
Reference in a new issue