Skip to content

Commit 384516d

Browse files
committed
remove unused repsdb_url argument
1 parent 5748d63 commit 384516d

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ pub struct SnapshotCmd {
3232
#[structopt(long)]
3333
representatives_group: Option<String>,
3434

35-
/// Url of the representative db api server
36-
#[structopt(long)]
37-
reps_db_api_url: reqwest::Url,
38-
3935
/// Voting power cap for each account
4036
#[structopt(short, long)]
4137
voting_power_cap: Fraction,
@@ -56,7 +52,7 @@ impl SnapshotCmd {
5652
let representative = self
5753
.representatives_group
5854
.unwrap_or_else(|| DEFAULT_REPRESENTATIVE_GROUP.into());
59-
let assigner = RepsVotersAssigner::new(direct_voter, representative, self.reps_db_api_url)?;
55+
let assigner = RepsVotersAssigner::new(direct_voter, representative)?;
6056
let initials = Snapshot::from_raw_snapshot(
6157
raw_snapshot,
6258
self.min_stake_threshold,

snapshot-lib/src/voting_group.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ fn get_all_reps(_url: impl reqwest::IntoUrl) -> Result<HashSet<Identifier>, Erro
4848
}
4949

5050
impl RepsVotersAssigner {
51-
pub fn new(
52-
direct_voters: VotingGroup,
53-
reps: VotingGroup,
54-
_repsdb_url: impl reqwest::IntoUrl,
55-
) -> Result<Self, Error> {
51+
pub fn new(direct_voters: VotingGroup, reps: VotingGroup) -> Result<Self, Error> {
5652
Ok(Self {
5753
direct_voters,
5854
reps,

0 commit comments

Comments
 (0)