Skip to content

Commit

Permalink
fix: duplicate entries in node_providers (#1040)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaMilosa authored Oct 29, 2024
1 parent 8139c21 commit 1bf2d51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rs/cli/src/commands/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ async fn get_node_providers(local_registry: &Arc<dyn LazyRegistry>) -> anyhow::R
.await?
.values()
.map(|operator| operator.provider.clone())
.sorted_by_key(|provider| provider.principal)
.dedup_by(|x, y| x.principal == y.principal)
.collect_vec();

Expand Down

0 comments on commit 1bf2d51

Please sign in to comment.