Skip to content

Commit 7426044

Browse files
committed
update RepsVotersAssigner::new
1 parent 74e354f commit 7426044

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

catalyst-toolbox/src/bin/cli/snapshot/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl SnapshotCmd {
5252
let representative = self
5353
.representatives_group
5454
.unwrap_or_else(|| DEFAULT_REPRESENTATIVE_GROUP.into());
55-
let assigner = RepsVotersAssigner::new(direct_voter, representative)?;
55+
let assigner = RepsVotersAssigner::new(direct_voter, representative);
5656
let initials = Snapshot::from_raw_snapshot(
5757
raw_snapshot,
5858
self.min_stake_threshold,

snapshot-lib/src/voting_group.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ fn get_all_reps(_url: impl reqwest::IntoUrl) -> Result<HashSet<Identifier>, Erro
5151
}
5252

5353
impl RepsVotersAssigner {
54-
pub fn new(direct_voters: VotingGroup, reps: VotingGroup) -> Result<Self, Error> {
55-
Ok(Self {
54+
pub fn new(direct_voters: VotingGroup, reps: VotingGroup) -> Self {
55+
Self {
5656
direct_voters,
5757
reps,
5858
repsdb: HashSet::new(),
59-
})
59+
}
6060
}
6161
}
6262

0 commit comments

Comments
 (0)