diff --git a/contracts/src/provider_proxy.rs b/contracts/src/provider_proxy.rs index 9849fd65..fa9459f5 100644 --- a/contracts/src/provider_proxy.rs +++ b/contracts/src/provider_proxy.rs @@ -68,7 +68,7 @@ pub trait ProviderProxyFactory { /// /// # Arguments /// - `provider_uri`: The provider URI to associate with this proxy - /// - `signal_values_queue`: The queue into which new signal values wil lbe published + /// - `signal_values_queue`: The queue into which new signal values will be published fn create_proxy( &self, provider_uri: &str, diff --git a/freyja/examples/in-memory.rs b/freyja/examples/in-memory.rs index f6ae640d..2e1ad0fa 100644 --- a/freyja/examples/in-memory.rs +++ b/freyja/examples/in-memory.rs @@ -3,8 +3,7 @@ // SPDX-License-Identifier: MIT use in_memory_mock_cloud_adapter::in_memory_mock_cloud_adapter::InMemoryMockCloudAdapter; -//use in_memory_mock_digital_twin_adapter::in_memory_mock_digital_twin_adapter::InMemoryMockDigitalTwinAdapter; +use in_memory_mock_digital_twin_adapter::in_memory_mock_digital_twin_adapter::InMemoryMockDigitalTwinAdapter; use in_memory_mock_mapping_client::in_memory_mock_mapping_client::InMemoryMockMappingClient; -use mock_digital_twin_adapter::mock_digital_twin_adapter::MockDigitalTwinAdapter; -freyja::freyja_main! {MockDigitalTwinAdapter, InMemoryMockCloudAdapter, InMemoryMockMappingClient} +freyja::freyja_main! {InMemoryMockDigitalTwinAdapter, InMemoryMockCloudAdapter, InMemoryMockMappingClient} diff --git a/provider_proxy_selector/src/provider_proxy_selector_impl.rs b/provider_proxy_selector/src/provider_proxy_selector_impl.rs index f4b93616..b48533b0 100644 --- a/provider_proxy_selector/src/provider_proxy_selector_impl.rs +++ b/provider_proxy_selector/src/provider_proxy_selector_impl.rs @@ -23,7 +23,7 @@ use grpc_provider_proxy_v1::grpc_provider_proxy_factory::GRPCProviderProxyFactor use http_mock_provider_proxy::http_mock_provider_proxy_factory::HttpMockProviderProxyFactory; use in_memory_mock_provider_proxy::in_memory_mock_provider_proxy_factory::InMemoryMockProviderProxyFactory; -/// Represents the state of teh ProviderProxySelector and allows for simplified access through a mutex +/// Represents the state of the ProviderProxySelector and allows for simplified access through a mutex struct ProviderProxySelectorState { /// A map of entity uri to provider proxy provider_proxies: HashMap>, @@ -100,7 +100,7 @@ impl ProviderProxySelector for ProviderProxySelectorImpl { } } - // If there's not a proxy we can resuse, find the right factory to create a new one + // If there's not a proxy we can reuse, find the right factory to create a new one let (provider_proxy, endpoint) = { let mut result = None; for factory in self.factories.iter() {