mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-12 01:10:03 -04:00
Convert synapse.api to async/await (#8031)
This commit is contained in:
parent
c36228c403
commit
d4a7829b12
22 changed files with 171 additions and 159 deletions
|
@ -70,8 +70,8 @@ class MockHandlerProfileTestCase(unittest.TestCase):
|
|||
profile_handler=self.mock_handler,
|
||||
)
|
||||
|
||||
def _get_user_by_req(request=None, allow_guest=False):
|
||||
return defer.succeed(synapse.types.create_requester(myid))
|
||||
async def _get_user_by_req(request=None, allow_guest=False):
|
||||
return synapse.types.create_requester(myid)
|
||||
|
||||
hs.get_auth().get_user_by_req = _get_user_by_req
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue