forked-synapse/synapse/federation
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
..
transport Ensure slashes are escaped 2018-04-10 11:24:40 +01:00
__init__.py Remove unused ReplicationLayer 2018-03-13 11:00:04 +00:00
federation_base.py Move property setting from ReplicationLayer to FederationBase 2018-03-13 10:51:30 +00:00
federation_client.py Move property setting from ReplicationLayer to FederationBase 2018-03-13 10:51:30 +00:00
federation_server.py Refactor ResponseCache usage 2018-04-12 13:02:15 +01:00
persistence.py copyrights 2016-01-07 04:26:29 +00:00
send_queue.py Use sortedcontainers instead of blist 2018-04-10 11:29:51 +02:00
transaction_queue.py Set all metrics at the same time 2018-04-12 11:18:19 +01:00
units.py copyrights 2016-01-07 04:26:29 +00:00