Skip to content

Commit

Permalink
rename assoc methods, use properly named setters
Browse files Browse the repository at this point in the history
  • Loading branch information
miraclx committed Apr 17, 2021
1 parent 304c7b8 commit 49fbc59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions neard/tests/node_cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ impl NodeCluster {
}
}

pub fn set_shards(mut self, n: NumShards) -> Self {
pub fn set_num_shards(mut self, n: NumShards) -> Self {
self.num_shards = Some(n);
self
}

pub fn set_validator_seats(mut self, n: NumSeats) -> Self {
pub fn set_num_validator_seats(mut self, n: NumSeats) -> Self {
self.num_validator_seats = Some(n);
self
}

pub fn set_lightclient(mut self, n: usize) -> Self {
pub fn set_num_lightclient(mut self, n: usize) -> Self {
self.num_lightclient = Some(n);
self
}
Expand Down

0 comments on commit 49fbc59

Please sign in to comment.