Start plugin postgres db if separate
This commit is contained in:
parent
800114b837
commit
cecda7c32b
@ -139,6 +139,8 @@ class Maubot(Program):
|
|||||||
try:
|
try:
|
||||||
await self.db.start()
|
await self.db.start()
|
||||||
await self.state_store.upgrade_table.upgrade(self.db)
|
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:
|
if self.crypto_db and self.crypto_db is not self.db:
|
||||||
await self.crypto_db.start()
|
await self.crypto_db.start()
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user