MatrixSynapse/synapse/util
Richard van der Hoff b78395b7fe Refactor ResponseCache usage
Adds a `.wrap` method to ResponseCache which wraps up the boilerplate of a
(get, set) pair, and then use it throughout the codebase.

This will be largely non-functional, but does include the following functional
changes:

* federation_server.on_context_state_request: drops use of _server_linearizer
  which looked redundant and could cause incorrect cache misses by yielding
  between the get and the set.
* RoomListHandler.get_remote_public_room_list(): fixes logcontext leaks
* the wrap function includes some logging. I'm hoping this won't be too noisy
  on production.
2018-04-12 13:02:15 +01:00
..
caches Refactor ResponseCache usage 2018-04-12 13:02:15 +01:00
__init__.py
async.py
distributor.py
file_consumer.py
frozenutils.py Use static JSONEncoders 2018-03-29 23:13:33 +01:00
httpresourcetree.py 404 correctly on missing paths via NoResource 2018-03-23 10:32:50 +00:00
jsonobject.py
logcontext.py Factor run_in_background out from preserve_fn 2018-03-08 11:50:11 +00:00
logformatter.py
logutils.py
manhole.py
metrics.py Revert "Merge pull request #3066 from matrix-org/rav/remove_redundant_metrics" 2018-04-09 12:59:12 +01:00
module_loader.py
msisdn.py
ratelimitutils.py
retryutils.py Add federation_domain_whitelist option (#2820) 2018-01-22 19:11:18 +01:00
rlimit.py
stringutils.py
threepids.py
versionstring.py
wheel_timer.py