summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-12 13:10:55 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-12 13:10:55 +0100
commit9a5c070123331f338a299cd62b3a375daa402eb5 (patch)
tree02bfb365efbedd461ab878a4f047e985456a786e
parentb2cd21f3d60414b527da5f0959c9a77c8c758ad2 (diff)
downloaddiscordbot-9a5c070123331f338a299cd62b3a375daa402eb5.tar.gz
discordbot-9a5c070123331f338a299cd62b3a375daa402eb5.zip
start with a pool of 1 connection
-rw-r--r--main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.py b/main.py
index 5864f55..a9c3f63 100644
--- a/main.py
+++ b/main.py
@@ -41,7 +41,8 @@ async def connect(queuedb, db):
await queue.setup()
global pool
- pool = await asyncpg.create_pool(**db)
+ pool = await asyncpg.create_pool(
+ min_size=1, **db)
@bot.event