Remove HomeServer.get_datastore() (#12031)

The presence of this method was confusing, and mostly present for backwards
compatibility. Let's get rid of it.

Part of #11733
This commit is contained in:
Richard van der Hoff authored and GitHub committed 2022-02-23 11:04:02 +00:00
1 parent c1ac2a8135
commit e24ff8ebe3
230 files changed
+526 -500

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ class MockHomeserver(HomeServer):
def run_background_updates(hs):
store = hs.get_datastore()
store = hs.get_datastores().main
async def run_background_updates():
await store.db_pool.updates.run_background_updates(sleep=False)