mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01:00 
			
		
		
		
	Discord bot db pool recycle set
This commit is contained in:
		@@ -22,7 +22,7 @@ class DatabaseInterface(object):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    async def connect(self, dburi):
 | 
					    async def connect(self, dburi):
 | 
				
			||||||
        async with threadpool():
 | 
					        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)
 | 
					            self._sessionmaker = sessionmaker(bind=self.engine, expire_on_commit=False)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @contextmanager
 | 
					    @contextmanager
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user