diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-08 18:20:09 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-08 18:20:09 +0100 |
| commit | 89e738064e061c9d555a18c519c4dfa41e8ac589 (patch) | |
| tree | b216bceb4fbce5cba27ebec70c056f422675e56e /api.py | |
| parent | 9b080a9c1041eeccee58696e6fe080c67b94d103 (diff) | |
| download | apigrabber-89e738064e061c9d555a18c519c4dfa41e8ac589.tar.gz apigrabber-89e738064e061c9d555a18c519c4dfa41e8ac589.zip | |
start with only 1 db connection
Diffstat (limited to 'api.py')
| -rw-r--r-- | api.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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.""" |
