Skip to content

Commit

Permalink
Fix cargofmt errors
Browse files Browse the repository at this point in the history
We get some weird `left behind trailing whitespace error`, delete
some newlines so it stops crashing
  • Loading branch information
mildbyte committed Apr 11, 2024
1 parent f51fb43 commit 7d2289b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ async fn main() {

Toplevel::new(|s: SubsystemHandle<Infallible>| async move {
let mut any_frontends: bool = false;

#[cfg(feature = "frontend-arrow-flight")]
if let Some(flight) = &context.config.frontend.flight {
let context = context.clone();
Expand All @@ -189,7 +188,6 @@ async fn main() {
Ok::<(), Infallible>(())
}));
};

#[cfg(feature = "frontend-postgres")]
if let Some(pg) = &context.config.frontend.postgres {
let context = context.clone();
Expand All @@ -207,11 +205,9 @@ async fn main() {
e = run_pg_server(context, pg) => e,
_ = h.on_shutdown_requested() => (),
};

Ok::<(), Infallible>(())
}));
};

if let Some(http) = &context.config.frontend.http {
let context = context.clone();
let http = http.clone();
Expand Down Expand Up @@ -256,8 +252,10 @@ async fn main() {
};
}));
};
}).catch_signals()
})
.catch_signals()
.handle_shutdown_requests(Duration::from_secs(5))
.await.unwrap();
.await
.unwrap();
info!("Exiting cleanly.");
}

0 comments on commit 7d2289b

Please sign in to comment.