Panic on postgres disconnection (#6)

This commit is contained in:
galactus 2023-12-04 15:29:58 +01:00 committed by GitHub
parent 5eaa36b1e8
commit ebf7135005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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")
});