Skip to content

Commit

Permalink
Silence warnings for unused variables
Browse files Browse the repository at this point in the history
for the upstream code just prefix them with underscore to minimize
differences, for creditcoin/ just remove them
  • Loading branch information
atodorov committed Apr 4, 2024
1 parent 496e209 commit 7e5e40c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/crunch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ fn spawn_and_restart_subscription_on_error() {
}
});

let h = healthcheck();
healthcheck();

task::block_on(t);
}
Expand All @@ -286,7 +286,7 @@ fn spawn_and_restart_crunch_flakes_on_error() {
}
});

let h = healthcheck();
healthcheck();

task::block_on(t);
}
Expand All @@ -302,7 +302,7 @@ fn healthcheck() -> async_std::task::JoinHandle<()> {

// we need to read the full request before we respond or we get a 'connection reset by peer error'
let buf_reader = BufReader::new(&mut stream);
let http_request: Vec<_> = buf_reader
let _http_request: Vec<_> = buf_reader
.lines()
.map(|result| result.unwrap())
.take_while(|line| !line.is_empty())
Expand Down
2 changes: 1 addition & 1 deletion src/runtimes/creditcoin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ pub async fn try_crunch(crunch: &Crunch) -> Result<(), CrunchError> {
pools_summary,
};

let report = Report::from(data);
let _report = Report::from(data);

Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion src/runtimes/kusama.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ pub async fn try_crunch(crunch: &Crunch) -> Result<(), CrunchError> {
};
debug!("network {:?}", network);

let data = RawData {
let _data = RawData {
network,
signer,
validators,
Expand Down
4 changes: 2 additions & 2 deletions src/runtimes/polkadot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ pub async fn try_crunch(crunch: &Crunch) -> Result<(), CrunchError> {
}

// Try run payouts in batches
let (mut validators, payout_summary) =
let (mut validators, _payout_summary) =
try_run_batch_payouts(&crunch, &seed_account_signer).await?;

// Try run members in batches
let pools_summary = try_run_batch_pool_members(&crunch, &seed_account_signer).await?;
let _pools_summary = try_run_batch_pool_members(&crunch, &seed_account_signer).await?;

// Get Network name
let chain_name = api.rpc().system_chain().await?;
Expand Down
2 changes: 1 addition & 1 deletion src/runtimes/westend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ pub async fn try_crunch(crunch: &Crunch) -> Result<(), CrunchError> {
};
debug!("network {:?}", network);

let data = RawData {
let _data = RawData {
network,
signer,
validators,
Expand Down

0 comments on commit 7e5e40c

Please sign in to comment.