diff options
author | Erik Johnston <erik@matrix.org> | 2019-12-05 15:53:06 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-12-05 15:57:28 +0000 |
commit | 1a0997bbd5f9134b21b1105c6b14e09480f193a9 (patch) | |
tree | 609c05ed1cf3cedea8927996d239386b5b83047e /synapse/rest/client/v1/voip.py | |
parent | Stronger typing in the federation handler (#6480) (diff) | |
download | synapse-1a0997bbd5f9134b21b1105c6b14e09480f193a9.tar.xz |
Port rest/v1 to async/await
Diffstat (limited to 'synapse/rest/client/v1/voip.py')
-rw-r--r-- | synapse/rest/client/v1/voip.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/synapse/rest/client/v1/voip.py b/synapse/rest/client/v1/voip.py index 2afdbb89e5..747d46eac2 100644 --- a/synapse/rest/client/v1/voip.py +++ b/synapse/rest/client/v1/voip.py @@ -17,8 +17,6 @@ import base64 import hashlib import hmac -from twisted.internet import defer - from synapse.http.servlet import RestServlet from synapse.rest.client.v2_alpha._base import client_patterns @@ -31,9 +29,8 @@ class VoipRestServlet(RestServlet): self.hs = hs self.auth = hs.get_auth() - @defer.inlineCallbacks - def on_GET(self, request): - requester = yield self.auth.get_user_by_req( + async def on_GET(self, request): + requester = await self.auth.get_user_by_req( request, self.hs.config.turn_allow_guests ) |