Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Leshiy committed Nov 30, 2021
1 parent 48e2055 commit daf5320
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions jormungandr/src/metrics/backends/prometheus_exporter.rs
Expand Up @@ -265,10 +265,10 @@ impl MetricsBackend for Prometheus {
}
Fragment::VoteTally(tx) => totals(tx),
Fragment::EncryptedVoteTally(tx) => totals(tx),
Fragment::Initial(_)
| Fragment::OldUtxoDeclaration(_)
| Fragment::UpdateProposal(_)
| Fragment::UpdateVote(_) => return Ok(()),
Fragment::MintToken(tx) => totals(tx),
Fragment::UpdateProposal(tx) => totals(tx),
Fragment::UpdateVote(tx) => totals(tx),
Fragment::Initial(_) | Fragment::OldUtxoDeclaration(_) => return Ok(()),
}?;
block_tx_count += 1;
block_input_sum = (block_input_sum + total_input)?;
Expand Down
7 changes: 3 additions & 4 deletions jormungandr/src/metrics/backends/simple_counter.rs
Expand Up @@ -202,10 +202,9 @@ impl MetricsBackend for SimpleCounter {
Fragment::VoteTally(tx) => totals(tx),
Fragment::EncryptedVoteTally(tx) => totals(tx),
Fragment::MintToken(tx) => totals(tx),
Fragment::Initial(_)
| Fragment::OldUtxoDeclaration(_)
| Fragment::UpdateProposal(_)
| Fragment::UpdateVote(_) => return Ok(()),
Fragment::UpdateProposal(tx) => totals(tx),
Fragment::UpdateVote(tx) => totals(tx),
Fragment::Initial(_) | Fragment::OldUtxoDeclaration(_) => return Ok(()),
}?;
block_tx_count += 1;
block_input_sum = (block_input_sum + total_input)?;
Expand Down

0 comments on commit daf5320

Please sign in to comment.