diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2022-02-23 12:35:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-23 12:35:53 +0000 |
commit | 5b2b36809fc3543ed0c9ec587398a09f2e176265 (patch) | |
tree | efed3f9982193ddced3e42f11b4b144d62df2515 /synapse/handlers | |
parent | Remove `HomeServer.get_datastore()` (#12031) (diff) | |
download | synapse-5b2b36809fc3543ed0c9ec587398a09f2e176265.tar.xz |
Remove more references to `get_datastore` (#12067)
These have snuck in since #12031 was started. Also a couple of other cleanups while we're in the area.
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/account.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/account.py b/synapse/handlers/account.py index f8cfe9f6de..d5badf635b 100644 --- a/synapse/handlers/account.py +++ b/synapse/handlers/account.py @@ -23,7 +23,7 @@ if TYPE_CHECKING: class AccountHandler: def __init__(self, hs: "HomeServer"): - self._store = hs.get_datastore() + self._main_store = hs.get_datastores().main self._is_mine = hs.is_mine self._federation_client = hs.get_federation_client() @@ -98,7 +98,7 @@ class AccountHandler: """ status = {"exists": False} - userinfo = await self._store.get_userinfo_by_id(user_id.to_string()) + userinfo = await self._main_store.get_userinfo_by_id(user_id.to_string()) if userinfo is not None: status = { |