From a052f947e1f1ecad61207f7157fb96d2495ad417 Mon Sep 17 00:00:00 2001 From: William Lyles <26171886+wilyle@users.noreply.github.com> Date: Fri, 16 Feb 2024 12:52:20 -0800 Subject: [PATCH] fmt --- .../src/chariott_service_discovery_adapter.rs | 5 ++++- .../src/file_service_discovery_adapter.rs | 5 ++++- common/src/service_discovery_adapter.rs | 5 ++++- common/src/service_discovery_adapter_selector.rs | 5 ++++- freyja/src/service_discovery_adapter_selector_impl.rs | 5 ++++- 5 files changed, 20 insertions(+), 5 deletions(-) diff --git a/adapters/service_discovery/chariott_service_discovery_adapter/src/chariott_service_discovery_adapter.rs b/adapters/service_discovery/chariott_service_discovery_adapter/src/chariott_service_discovery_adapter.rs index 6df1d73..434045f 100644 --- a/adapters/service_discovery/chariott_service_discovery_adapter/src/chariott_service_discovery_adapter.rs +++ b/adapters/service_discovery/chariott_service_discovery_adapter/src/chariott_service_discovery_adapter.rs @@ -68,7 +68,10 @@ impl ServiceDiscoveryAdapter for ChariottServiceDiscoveryAdapter { /// /// # Arguments /// - `id`: the service identifier - async fn get_service_uri<'a>(&self, id: &'a str) -> Result { + async fn get_service_uri<'a>( + &self, + id: &'a str, + ) -> Result { let pieces = id.split('/').collect::>(); if pieces.len() != 3 { return Err(ServiceDiscoveryAdapterErrorKind::InvalidId.into()); diff --git a/adapters/service_discovery/file_service_discovery_adapter/src/file_service_discovery_adapter.rs b/adapters/service_discovery/file_service_discovery_adapter/src/file_service_discovery_adapter.rs index 25b02d0..61caf07 100644 --- a/adapters/service_discovery/file_service_discovery_adapter/src/file_service_discovery_adapter.rs +++ b/adapters/service_discovery/file_service_discovery_adapter/src/file_service_discovery_adapter.rs @@ -43,7 +43,10 @@ impl ServiceDiscoveryAdapter for FileServiceDiscoveryAdapter { /// /// # Arguments /// - `id`: the service identifier - async fn get_service_uri<'a>(&self, id: &'a str) -> Result { + async fn get_service_uri<'a>( + &self, + id: &'a str, + ) -> Result { self.config .services .get(id) diff --git a/common/src/service_discovery_adapter.rs b/common/src/service_discovery_adapter.rs index e2ab000..1ad3cf2 100644 --- a/common/src/service_discovery_adapter.rs +++ b/common/src/service_discovery_adapter.rs @@ -19,7 +19,10 @@ pub trait ServiceDiscoveryAdapter { /// /// # Arguments /// - `id`: the service identifier - async fn get_service_uri<'a>(&self, id: &'a str) -> Result; + async fn get_service_uri<'a>( + &self, + id: &'a str, + ) -> Result; } proc_macros::error! { diff --git a/common/src/service_discovery_adapter_selector.rs b/common/src/service_discovery_adapter_selector.rs index dec139b..6437094 100644 --- a/common/src/service_discovery_adapter_selector.rs +++ b/common/src/service_discovery_adapter_selector.rs @@ -22,5 +22,8 @@ pub trait ServiceDiscoveryAdapterSelector { /// /// # Arguments /// - `id`: the service identifier - async fn get_service_uri<'a>(&self, id: &'a str) -> Result; + async fn get_service_uri<'a>( + &self, + id: &'a str, + ) -> Result; } diff --git a/freyja/src/service_discovery_adapter_selector_impl.rs b/freyja/src/service_discovery_adapter_selector_impl.rs index 4a72f29..9f52aec 100644 --- a/freyja/src/service_discovery_adapter_selector_impl.rs +++ b/freyja/src/service_discovery_adapter_selector_impl.rs @@ -46,7 +46,10 @@ impl ServiceDiscoveryAdapterSelector for ServiceDiscoveryAdapterSelectorImpl { /// /// # Arguments /// - `id`: the service identifier - async fn get_service_uri<'a>(&self, id: &'a str) -> Result { + async fn get_service_uri<'a>( + &self, + id: &'a str, + ) -> Result { for adapter in self.adapters.iter() { log::debug!( "Attempting to discover uri for service {id} from adapter {}...",