From cecda7c32b1e264a278818c3c1a5f9785534c00a Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 28 Mar 2022 17:13:39 +0300 Subject: [PATCH] Start plugin postgres db if separate --- maubot/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maubot/__main__.py b/maubot/__main__.py index 4d2e24e..d3e4671 100644 --- a/maubot/__main__.py +++ b/maubot/__main__.py @@ -139,6 +139,8 @@ class Maubot(Program): try: await self.db.start() await self.state_store.upgrade_table.upgrade(self.db) + if self.plugin_postgres_db and self.plugin_postgres_db is not self.db: + await self.plugin_postgres_db.start() if self.crypto_db and self.crypto_db is not self.db: await self.crypto_db.start() else: