EspressoSystems / hotshot-query-service

Generic query service for HotShot applications
https://espressosystems.github.io/hotshot-query-service/
GNU General Public License v3.0
5 stars 1 forks source link

Refresh postgres connection if closed #560

Closed jbearer closed 3 months ago

jbearer commented 4 months ago

If any of the low-level tokio-postgres methods fail due to a closed connection, we should automatically replace the connection in the SqlStorage instance with a fresh one. The connection can be closed for a number of reasons, including the server restarting.