Improve code format in router

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet
2025-09-03 14:54:11 +02:00
parent d921dca75c
commit dbb9493bcb

View File

@@ -227,8 +227,9 @@ async fn deliver_one(
// Stop on terminal states // Stop on terminal states
if matches!(s, TransportStatus::Delivered | TransportStatus::Read) { if matches!(s, TransportStatus::Delivered | TransportStatus::Read) {
// On Read, fetch supervisor job.status and update local job/message if terminal // On Read, fetch supervisor job.status and update local job/message if terminal
if matches!(s, TransportStatus::Read) { if matches!(s, TransportStatus::Read)
if let Some(job_id) = job_id_opt { && let Some(job_id) = job_id_opt
{
let sup = SupervisorClient::new_with_client( let sup = SupervisorClient::new_with_client(
client.clone(), client.clone(),
sup_dest.clone(), sup_dest.clone(),
@@ -356,7 +357,6 @@ async fn deliver_one(
} }
} }
} }
}
break; break;
} }
if matches!(s, TransportStatus::Failed) { if matches!(s, TransportStatus::Failed) {