0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-26 14:38:18 +02:00
synapse/synapse/push
Sean Quah d0c713cc85
Return read-only collections from @cached methods (#13755)
It's important that collections returned from `@cached` methods are not
modified, otherwise future retrievals from the cache will return the
modified collection.

This applies to the return values from `@cached` methods and the values
inside the dictionaries returned by `@cachedList` methods. It's not
necessary for the dictionaries returned by `@cachedList` methods
themselves to be read-only.

Signed-off-by: Sean Quah <seanq@matrix.org>
Co-authored-by: David Robertson <davidr@element.io>
2023-02-10 23:29:00 +00:00
..
__init__.py Track device IDs for pushers (#13831) 2022-09-21 15:31:53 +00:00
bulk_push_rule_evaluator.py Return read-only collections from @cached methods (#13755) 2023-02-10 23:29:00 +00:00
clientformat.py Remove undocumented device from pushrules (#14727) 2023-01-09 17:17:24 +00:00
emailpusher.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
httppusher.py Implement push rule evaluation in Rust. (#13838) 2022-09-29 16:12:09 +01:00
mailer.py Move StateFilter to synapse.types (#14668) 2022-12-12 16:19:30 +00:00
presentable_names.py Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
push_tools.py Aggregate unread notif count query for badge count calculation (#14255) 2022-11-30 08:45:06 -05:00
push_types.py Improved push typing (#11409) 2021-11-30 11:49:20 +00:00
pusher.py Use direct references for some configuration variables (part 3) (#10885) 2021-09-23 07:13:34 -04:00
pusherpool.py Track device IDs for pushers (#13831) 2022-09-21 15:31:53 +00:00
rulekinds.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00