mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Discord bot db pool recycle set
This commit is contained in:
parent
b43d29bca5
commit
e7e0c6e505
@ -22,7 +22,7 @@ class DatabaseInterface(object):
|
||||
|
||||
async def connect(self, dburi):
|
||||
async with threadpool():
|
||||
self.engine = create_engine(dburi)
|
||||
self.engine = create_engine(dburi, pool_recycle=250)
|
||||
self._sessionmaker = sessionmaker(bind=self.engine, expire_on_commit=False)
|
||||
|
||||
@contextmanager
|
||||
|
Loading…
Reference in New Issue
Block a user