mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 11:34:10 -04:00
Port rest/v1 to async/await
This commit is contained in:
parent
63d6ad1064
commit
1a0997bbd5
11 changed files with 118 additions and 167 deletions
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue