From 74687953ae28f46b71c21497bf05d9a6ec4aa768 Mon Sep 17 00:00:00 2001 From: Alex Leong Date: Mon, 17 Jul 2023 21:02:08 +0000 Subject: [PATCH] fmt Signed-off-by: Alex Leong --- .../k8s/index/src/outbound/index.rs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/policy-controller/k8s/index/src/outbound/index.rs b/policy-controller/k8s/index/src/outbound/index.rs index 907a5524ad6f4..3670a54308746 100644 --- a/policy-controller/k8s/index/src/outbound/index.rs +++ b/policy-controller/k8s/index/src/outbound/index.rs @@ -241,18 +241,18 @@ impl Namespace { let port = parent_ref.port.and_then(NonZeroU16::new); if let Some(port) = port { - let service_port = ServicePort { - port, - service: parent_ref.name.clone(), - }; - tracing::debug!( - ?service_port, - route = route.name(), - "inserting route for service" - ); - let service_routes = - self.service_routes_or_default(service_port, cluster_info, service_info); - service_routes.apply(route.gkn(), outbound_route.clone()); + let service_port = ServicePort { + port, + service: parent_ref.name.clone(), + }; + tracing::debug!( + ?service_port, + route = route.name(), + "inserting route for service" + ); + let service_routes = + self.service_routes_or_default(service_port, cluster_info, service_info); + service_routes.apply(route.gkn(), outbound_route.clone()); } else { // If the parent_ref doesn't include a port, apply this route // to all ServiceRoutes which match the Service name.