summary refs log tree commit diff
path: root/synapse/storage/databases/main/registration.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-10-19 18:34:31 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2020-10-19 18:34:31 +0100
commit25b077d747cbac85c08b0cc416df0f0e6202921a (patch)
treed011aa68a1e93095810f1a81055ae6c2a0527858 /synapse/storage/databases/main/registration.py
parentMerge commit 'e04e465b4' into anoa/dinsic_release_1_21_x (diff)
parentConvert some of the general database methods to async (#8100) (diff)
downloadsynapse-25b077d747cbac85c08b0cc416df0f0e6202921a.tar.xz
Merge commit '050e20e7c' into anoa/dinsic_release_1_21_x
* commit '050e20e7c':
  Convert some of the general database methods to async (#8100)
Diffstat (limited to 'synapse/storage/databases/main/registration.py')
-rw-r--r--synapse/storage/databases/main/registration.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/synapse/storage/databases/main/registration.py b/synapse/storage/databases/main/registration.py

index b571ea0a15..5986d32b18 100644 --- a/synapse/storage/databases/main/registration.py +++ b/synapse/storage/databases/main/registration.py
@@ -17,9 +17,7 @@ import logging import re -from typing import Dict, List, Optional - -from twisted.internet.defer import Deferred +from typing import Awaitable, Dict, List, Optional from synapse.api.constants import UserTypes from synapse.api.errors import Codes, StoreError, SynapseError, ThreepidValidationError @@ -642,7 +640,7 @@ class RegistrationWorkerStore(SQLBaseStore): id_server (str) Returns: - Deferred + Awaitable """ # We need to use an upsert, in case they user had already bound the # threepid @@ -1163,7 +1161,7 @@ class RegistrationStore(RegistrationBackgroundUpdateStore): def record_user_external_id( self, auth_provider: str, external_id: str, user_id: str - ) -> Deferred: + ) -> Awaitable: """Record a mapping from an external user id to a mxid Args: