summary refs log tree commit diff
path: root/synapse/api/ratelimiting.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2017-09-20 01:32:42 +0100
committerRichard van der Hoff <richard@matrix.org>2017-09-20 01:32:42 +0100
commit2a4b9ea233cfffa556fa63a37cffb24bfe133d82 (patch)
tree585e674188b95551c3fd68d015f0c3d0c2a824c9 /synapse/api/ratelimiting.py
parentFactor out _start_key_lookups (diff)
downloadsynapse-2a4b9ea233cfffa556fa63a37cffb24bfe133d82.tar.xz
Consistency for how verify_request.deferred is called
Define that it is run with no log context, and make sure that happens.

If we aren't careful to reset the logcontext, we can't bung the deferreds into
defer.gatherResults etc. We don't actually do that directly, but we *do*
resolve other deferreds from affected callbacks (notably the server_to_deferred
map in _start_key_lookups), and those *do* get passed into
defer.gatherResults. It turns out that this way ends up being least confusing.
Diffstat (limited to 'synapse/api/ratelimiting.py')
0 files changed, 0 insertions, 0 deletions