summary refs log tree commit diff
path: root/synapse/http/site.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-10-19 14:30:55 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2020-10-19 14:30:55 +0100
commitaf13a4b21beff8c075cd9d57053b2db9d4a64d46 (patch)
tree4fef60aae291979f34b3264deba1fabcebb9b56c /synapse/http/site.py
parentMerge commit '66f24449d' into anoa/dinsic_release_1_21_x (diff)
parentConvert run_as_background_process inner function to async. (#8032) (diff)
downloadsynapse-af13a4b21beff8c075cd9d57053b2db9d4a64d46.tar.xz
Merge commit 'c36228c40' into anoa/dinsic_release_1_21_x
* commit 'c36228c40':
  Convert run_as_background_process inner function to async. (#8032)
Diffstat (limited to 'synapse/http/site.py')
-rw-r--r--synapse/http/site.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/http/site.py b/synapse/http/site.py

index 6f3b2258cc..f506152fea 100644 --- a/synapse/http/site.py +++ b/synapse/http/site.py
@@ -146,10 +146,9 @@ class SynapseRequest(Request): Returns a context manager; the correct way to use this is: - @defer.inlineCallbacks - def handle_request(request): + async def handle_request(request): with request.processing("FooServlet"): - yield really_handle_the_request() + await really_handle_the_request() Once the context manager is closed, the completion of the request will be logged, and the various metrics will be updated.