summary refs log tree commit diff
path: root/synapse/storage/databases/main/directory.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-10-20 17:33:47 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2020-10-20 17:33:47 +0100
commita89a160c1723dbc2f9966cf939d5797a41356188 (patch)
tree1823a598b2be383905b42d7de4295cf41d5d42de /synapse/storage/databases/main/directory.py
parentMerge commit 'a466b6797' into anoa/dinsic_release_1_21_x (diff)
parentConvert simple_update* and simple_select* to async (#8173) (diff)
downloadsynapse-a89a160c1723dbc2f9966cf939d5797a41356188.tar.xz
Merge commit '4a739c73b' into anoa/dinsic_release_1_21_x
* commit '4a739c73b':
  Convert simple_update* and simple_select* to async (#8173)
Diffstat (limited to 'synapse/storage/databases/main/directory.py')
-rw-r--r--synapse/storage/databases/main/directory.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/databases/main/directory.py b/synapse/storage/databases/main/directory.py

index 301d5d845a..405b5eafa5 100644 --- a/synapse/storage/databases/main/directory.py +++ b/synapse/storage/databases/main/directory.py
@@ -14,7 +14,7 @@ # limitations under the License. from collections import namedtuple -from typing import Iterable, Optional +from typing import Iterable, List, Optional from synapse.api.errors import SynapseError from synapse.storage._base import SQLBaseStore @@ -68,8 +68,8 @@ class DirectoryWorkerStore(SQLBaseStore): ) @cached(max_entries=5000) - def get_aliases_for_room(self, room_id): - return self.db_pool.simple_select_onecol( + async def get_aliases_for_room(self, room_id: str) -> List[str]: + return await self.db_pool.simple_select_onecol( "room_aliases", {"room_id": room_id}, "room_alias",