Skip to content

Commit

Permalink
Fix Server formatting to pass rust fmt check
Browse files Browse the repository at this point in the history
  • Loading branch information
kriswuollett committed Dec 13, 2024
1 parent 1cd1551 commit 6773af5
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions pingora-core/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@ impl Server {
// graceful shutdown if there are listening sockets
info!("Broadcasting graceful shutdown");
match self.shutdown_watch.send(true) {
Ok(_) => {
info!("Graceful shutdown started!");
}
Ok(_) => { info!("Graceful shutdown started!"); }
Err(e) => {
error!("Graceful shutdown broadcast failed: {e}");
}
Expand All @@ -174,10 +172,10 @@ impl Server {
let fds = fds.lock().await;
info!("Trying to send socks");
// XXX: this is blocking IO
match fds.send_to_sock(self.configuration.as_ref().upgrade_sock.as_str()) {
Ok(_) => {
info!("listener sockets sent");
}
match fds.send_to_sock(
self.configuration.as_ref().upgrade_sock.as_str())
{
Ok(_) => {info!("listener sockets sent");},
Err(e) => {
error!("Unable to send listener sockets to new process: {e}");
// sentry log error on fd send failure
Expand All @@ -189,9 +187,7 @@ impl Server {
info!("Broadcasting graceful shutdown");
// gracefully exiting
match self.shutdown_watch.send(true) {
Ok(_) => {
info!("Graceful shutdown started!");
}
Ok(_) => { info!("Graceful shutdown started!"); }
Err(e) => {
error!("Graceful shutdown broadcast failed: {e}");
// switch to fast shutdown
Expand Down

0 comments on commit 6773af5

Please sign in to comment.