Trying to get rid of loop

pull/8/head
sgoudham 4 years ago
parent cedf0c6353
commit 09e3bc0913

@ -87,15 +87,14 @@ class Bot(commands.Bot):
self.member_cache = MyCoolCache(2) self.member_cache = MyCoolCache(2)
async def create_connection(): async def create_connection():
"""Setting up connection using pool/aiomysql""" """Setting up connection using asyncpg"""
self.db = await asyncpg.create_pool( self.db = await asyncpg.create_pool(
host=host, host=host,
port=int(port), port=int(port),
user=user, user=user,
password=password, password=password,
database=db, database=db)
loop=self.loop)
async def startup_cache_log(): async def startup_cache_log():
"""Store the guilds/modmail systems in cache from the database on startup""" """Store the guilds/modmail systems in cache from the database on startup"""

Loading…
Cancel
Save