]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Create the waiting selector only after the first wait
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 1 Jan 2021 17:46:22 +0000 (18:46 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 8 Jan 2021 01:26:53 +0000 (02:26 +0100)
commit4bca05d11f73e45915573e88838eb94fb7af2abf
tree88d0809ba8e20ae843a03948d5aa9ac9ce92dcfd
parentaa05cb067f2538766e70cc12dd414378a17336de
Create the waiting selector only after the first wait

Sometimes there is no need to wait at all, if the generator exits on the
first result. It happens especially in copy.
psycopg3/psycopg3/waiting.py