This allows to reduce the boilerplate regarding initial connection failures.
While trying to figure out the type issue, i tampered with this a bit ¯\_(ツ)_/¯.
Differential D7644
db_utils: Make connect_to_conninfo use through contextmanager ardumont on Apr 25 2022, 2:14 PM. Authored by Tags None Subscribers None
Details
This allows to reduce the boilerplate regarding initial connection failures. While trying to figure out the type issue, i tampered with this a bit ¯\_(ツ)_/¯. tests should still be happy
Diff Detail
Event TimelineComment Actions Build is green Patch application report for D7644 (id=27663)Rebasing onto 95709cffdd... Current branch diff-target is up to date. Changes applied before testcommit 68c2cc8fd7b0e32693dc5b39185b59ba191f2d91 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Mon Apr 25 13:25:36 2022 +0200 db_utils: Make connect_to_conninfo use through contextmanager This allows to reduce the boilerplate regarding initial connection failures. See https://jenkins.softwareheritage.org/job/DCORE/job/tests-on-diff/404/ for more details.
Comment Actions Build is green Patch application report for D7644 (id=27710)Rebasing onto 95709cffdd... Current branch diff-target is up to date. Changes applied before testcommit 297019774eaa1f428c0b11f4a48728aa3c651a12 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Mon Apr 25 13:25:36 2022 +0200 db_utils: Make connect_to_conninfo use through contextmanager This allows to reduce the boilerplate regarding initial connection failures. See https://jenkins.softwareheritage.org/job/DCORE/job/tests-on-diff/405/ for more details.
|