From 96641c186b533aa225e58136cdeeb6a038ad8738 Mon Sep 17 00:00:00 2001 From: godmodegalactus Date: Mon, 4 Dec 2023 14:40:26 +0100 Subject: [PATCH] Panic on postgres disconnection --- src/postgres.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/postgres.rs b/src/postgres.rs index d844600..ef16ba6 100644 --- a/src/postgres.rs +++ b/src/postgres.rs @@ -82,7 +82,8 @@ impl PostgresSession { if let Err(err) = connection.await { error!("Connection to Postgres broke {err:?}"); - return; + // should restart the side car / currently no way around it + panic!("Connection to Postgres broke {err:?}"); } unreachable!("Postgres thread returned") });