From c01ed85e7af3c90cad6bfc96a68ce2e5c1f33e44 Mon Sep 17 00:00:00 2001 From: Neshura Date: Tue, 12 Dec 2023 21:10:04 +0100 Subject: [PATCH] Postgres Watchdog Fix --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e973a6d..f1df875 100644 --- a/src/main.rs +++ b/src/main.rs @@ -247,7 +247,7 @@ async fn main() { println!(" -> http://[{}]:{}", Ipv6Addr::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 { actix_web::rt::signal::ctrl_c().await.unwrap(); println!("Ctrl-C received, killing Server");