remove HomeServer.get_config (#9815)

Every single time I want to access the config object, I have to remember
whether or not we use `get_config`. Let's just get rid of it.
This commit is contained in:
Richard van der Hoff 2021-04-14 19:09:08 +01:00 committed by GitHub
parent 936e69825a
commit 5a153772c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 16 additions and 18 deletions

View file

@ -501,7 +501,7 @@ class StoreKeyFetcher(KeyFetcher):
class BaseV2KeyFetcher(KeyFetcher):
def __init__(self, hs: "HomeServer"):
self.store = hs.get_datastore()
self.config = hs.get_config()
self.config = hs.config
async def process_v2_response(
self, from_server: str, response_json: JsonDict, time_added_ms: int