Postgres Watchdog Fix
All checks were successful
All checks were successful
This commit is contained in:
parent
12938d1ee4
commit
c01ed85e7a
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||||
|
|
Reference in a new issue