anonymousland-synapse/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 fix vars named l 2017-10-23 15:56:38 +01:00
async.py Remove preserve_context_over_{fn, deferred} 2017-11-14 11:22:42 +00:00
distributor.py Remove preserve_context_over_{fn, deferred} 2017-11-14 11:22:42 +00:00
file_consumer.py Do logcontexts correctly 2018-01-18 11:57:57 +00:00
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 Handle sending events and device messages over federation 2016-11-17 15:48:04 +00:00
logcontext.py Factor run_in_background out from preserve_fn 2018-03-08 11:50:11 +00:00
logformatter.py logformatter: fix AttributeError 2017-10-11 17:26:17 +01:00
logutils.py Fix up logcontexts 2016-02-08 14:26:45 +00:00
manhole.py Add a metrics listener and a ssh listener to the pusher 2016-04-25 17:34:25 +01:00
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 pep8 2017-09-26 19:21:41 +01:00
msisdn.py Support registration / login with phone number 2017-03-13 17:27:51 +00:00
ratelimitutils.py Remove some unused functions (#711) 2016-04-08 14:01:56 +01:00
retryutils.py Add federation_domain_whitelist option (#2820) 2018-01-22 19:11:18 +01:00
rlimit.py Move the versionstring code out of app.homeserver into util 2016-04-11 14:57:09 +01:00
stringutils.py Reduce size of joined_user cache 2017-04-25 14:38:51 +01:00
threepids.py fix PR nitpicking 2018-01-19 18:23:45 +00:00
versionstring.py Add federation /version API 2016-08-05 16:36:07 +01:00
wheel_timer.py fix vars named l 2017-10-23 15:56:38 +01:00