Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wilyle committed Nov 3, 2023
1 parent 951e65b commit 3c4b357
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contracts/src/provider_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 2 additions & 3 deletions freyja/examples/in-memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}
4 changes: 2 additions & 2 deletions provider_proxy_selector/src/provider_proxy_selector_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Arc<dyn ProviderProxy + Send + Sync>>,
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 3c4b357

Please sign in to comment.