Rename database classes to make some sense (#8033)

This commit is contained in:
Erik Johnston
2020-08-05 21:38:57 +01:00
committed by GitHub
parent 0a86850ba3
commit a7bdf98d01
337 changed files with 1408 additions and 1323 deletions

View File

@@ -47,9 +47,9 @@ async def make_homeserver(reactor, config=None):
stor = hs.get_datastore()
# Run the database background updates.
if hasattr(stor.db.updates, "do_next_background_update"):
while not await stor.db.updates.has_completed_background_updates():
await stor.db.updates.do_next_background_update(1)
if hasattr(stor.db_pool.updates, "do_next_background_update"):
while not await stor.db_pool.updates.has_completed_background_updates():
await stor.db_pool.updates.do_next_background_update(1)
def cleanup():
for i in cleanup_tasks: