]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix(pool): create asyncio objects on open rather than on init
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 3 Nov 2022 16:42:58 +0000 (17:42 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 4 Nov 2022 16:31:55 +0000 (17:31 +0100)
commit11e0401dea4f167ba764a5a4f230435d22053971
tree3542d5481a3fe8303b7b2921bf39ae9058365261
parented915d2a7a8c13964e08d12faa4d53106e16d944
fix(pool): create asyncio objects on open rather than on init

If created on init, they get attached to the wrong loop and fail to
work.

Close #219
psycopg_pool/psycopg_pool/pool_async.py
tests/pool/test_pool_async_noasyncio.py [new file with mode: 0644]