Made postgres to have possibly more connections

This commit is contained in:
Frisk 2021-10-27 01:16:04 +02:00
parent 40ccf6b067
commit abd60e01bd
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC

View file

@ -16,7 +16,7 @@ class db_connection:
logger.debug("Setting up the Database connection...")
self.connection = await asyncpg.create_pool(user=settings["pg_user"], host=settings.get("pg_host", "localhost"),
database=settings.get("pg_db", "rcgcdb"), password=settings.get("pg_pass"),
port=settings.get("pg_port", 5432))
port=settings.get("pg_port", 5432), min_size=10, max_size=40)
logger.debug("Database connection established! Connection: {}".format(self.connection))
async def shutdown_connection(self):