forked-synapse/synapse
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
..
api Add b prefixes to some strings that are bytes in py3 2018-04-04 13:48:51 +02:00
app Merge pull request #3061 from NotAFile/add-some-byte-strings 2018-04-09 23:54:05 +01:00
appservice Refactor ResponseCache usage 2018-04-12 13:02:15 +01:00
config Merge pull request #3074 from NotAFile/fix-py3-prints 2018-04-09 23:44:41 +01:00
crypto Fix 500 when joining matrix-dev 2017-11-29 16:00:46 +00:00
events Remove context.push_actions 2018-02-15 15:47:06 +00:00
federation Refactor ResponseCache usage 2018-04-12 13:02:15 +01:00
groups de-lint, quote consistency 2018-04-06 16:02:06 +01:00
handlers Refactor ResponseCache usage 2018-04-12 13:02:15 +01:00
http Merge pull request #3061 from NotAFile/add-some-byte-strings 2018-04-09 23:54:05 +01:00
metrics s/list/tuple 2018-04-12 11:19:04 +01:00
module_api Delete devices in various logout situations 2017-11-29 16:44:35 +00:00
push Update comments 2018-02-21 11:29:49 +00:00
replication Refactor ResponseCache usage 2018-04-12 13:02:15 +01:00
rest Merge pull request #3079 from matrix-org/erikj/limit_concurrent_sends 2018-04-10 16:43:58 +01:00
static/client
storage Format docstring 2018-04-12 12:07:09 +01:00
streams replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
util Refactor ResponseCache usage 2018-04-12 13:02:15 +01:00
__init__.py version bump v0.27.3-rc2 2018-04-09 17:25:57 +01:00
event_auth.py Fix templating error with unban permission message 2018-01-07 19:52:58 -07:00
notifier.py Clear logcontext before starting fed txn queue runner 2017-11-28 15:26:14 +00:00
python_dependencies.py Use sortedcontainers instead of blist 2018-04-10 11:29:51 +02:00
server.py Split RoomMemberWorkerHandler to separate file 2018-03-14 11:41:45 +00:00
server.pyi Factor out resolve_state_groups to a separate handler 2018-02-01 12:40:04 +00:00
state.py Measure time it takes to calculate state group ID 2018-03-28 11:03:52 +01:00
types.py In DomainSpecificString, override __repr__ in addition to __str__ 2018-04-10 11:35:29 +02:00
visibility.py Remove preserve_context_over_{fn, deferred} 2017-11-14 11:22:42 +00:00