Improve code format in router
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user