mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-15 21:20:12 -04:00
Convert replication code to async/await. (#7987)
This commit is contained in:
parent
db5970ac6d
commit
3b415e23a5
11 changed files with 29 additions and 38 deletions
|
@ -34,7 +34,7 @@ class ReplicationRegisterServlet(ReplicationEndpoint):
|
|||
self.registration_handler = hs.get_registration_handler()
|
||||
|
||||
@staticmethod
|
||||
def _serialize_payload(
|
||||
async def _serialize_payload(
|
||||
user_id,
|
||||
password_hash,
|
||||
was_guest,
|
||||
|
@ -105,7 +105,7 @@ class ReplicationPostRegisterActionsServlet(ReplicationEndpoint):
|
|||
self.registration_handler = hs.get_registration_handler()
|
||||
|
||||
@staticmethod
|
||||
def _serialize_payload(user_id, auth_result, access_token):
|
||||
async def _serialize_payload(user_id, auth_result, access_token):
|
||||
"""
|
||||
Args:
|
||||
user_id (str): The user ID that consented
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue