Panic on postgres disconnection

This commit is contained in:
godmodegalactus 2023-12-04 14:40:26 +01:00
parent 5eaa36b1e8
commit 96641c186b
No known key found for this signature in database
GPG Key ID: 22DA4A30887FDA3C
1 changed files with 2 additions and 1 deletions

View File

@ -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")
});