NCEAS / metadig-webapp

Web service for interacting with the MDQ Engine API
1 stars 2 forks source link

Ensure postgres connections are closed correctly #24

Closed jeanetteclark closed 5 months ago

jeanetteclark commented 5 months ago

This addresses https://github.com/NCEAS/metadig-engine/issues/420

We use a try with resources instead of relying on a manual shutdown method to make sure connections are closed.