Skip to content

Commit

Permalink
fix(dre): Remove unnecessary Arc::clone (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic authored Jun 27, 2024
1 parent 18959ca commit 10c6eff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rs/cli/src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl Runner {
}

// Create a new registry state
let new_registry = Arc::new(registry::RegistryState::new(&self.network, true).await);
let mut new_registry = Arc::new(registry::RegistryState::new(&self.network, true).await);

// Fetch node providers
let node_providers = query_ic_dashboard_list::<NodeProvidersResponse>(&self.network, "v3/node-providers")
Expand All @@ -89,8 +89,8 @@ impl Runner {
.node_providers;

// Update node details
Arc::get_mut(&mut Arc::clone(&new_registry))
.expect("Failed to get mutable reference")
Arc::get_mut(&mut new_registry)
.expect("Failed to get mutable reference to new registry")
.update_node_details(&node_providers)
.await
.expect("Failed to update node details");
Expand Down

0 comments on commit 10c6eff

Please sign in to comment.