summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--api.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/api.py b/api.py
index 2bb37a1..cfbcbb8 100644
--- a/api.py
+++ b/api.py
@@ -21,7 +21,8 @@ class Apigrabber(joblib.worker.Worker):
"""Connect to database."""
logging.warning("connecting to database")
await super().connect(**args)
- self._pool = await asyncpg.create_pool(**args)
+ self._pool = await asyncpg.create_pool(min_size=1,
+ **args)
async def setup(self):
"""Initialize the database."""