Postgres Watchdog Fix
All checks were successful
Run Tests on Code / run-tests (push) Successful in 0s
Build and Release Binary File / run-tests (push) Successful in 0s
Build and Release Binary File / build (push) Successful in 1m13s
Build and Release Binary File / upload-release (push) Successful in 9s

This commit is contained in:
Neshura 2023-12-12 21:10:04 +01:00
parent 12938d1ee4
commit c01ed85e7a
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -247,7 +247,7 @@ async fn main() {
println!(" -> http://[{}]:{}", Ipv6Addr::UNSPECIFIED, 8080); println!(" -> http://[{}]:{}", Ipv6Addr::UNSPECIFIED, 8080);
println!(" -> http://{}:{}", Ipv4Addr::UNSPECIFIED, 8080); println!(" -> http://{}:{}", Ipv4Addr::UNSPECIFIED, 8080);
let watchdog_thread = tokio::spawn(async move { postgres_watchdog(pool_copy, shutdown_clone) }); let watchdog_thread = tokio::spawn(async move { postgres_watchdog(pool_copy, shutdown_clone).await });
tokio::spawn(async move { tokio::spawn(async move {
actix_web::rt::signal::ctrl_c().await.unwrap(); actix_web::rt::signal::ctrl_c().await.unwrap();
println!("Ctrl-C received, killing Server"); println!("Ctrl-C received, killing Server");