Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Remove needless variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Jun 30, 2023
1 parent b39e2c9 commit 465205e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions local-cluster/src/local_cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,8 @@ impl ClusterConfig {
cluster_lamports: u64,
lamports_per_node: u64,
) -> Self {
let stakes: Vec<_> = vec![lamports_per_node; num_nodes];
Self {
node_stakes: stakes,
node_stakes: vec![lamports_per_node; num_nodes],
cluster_lamports,
validator_configs: make_identical_validator_configs(
&ValidatorConfig::default_for_test(),
Expand Down

0 comments on commit 465205e

Please sign in to comment.