Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
grooviegermanikus committed Mar 19, 2024
1 parent a532a89 commit db66f55
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion bench/src/service_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use crate::oldbench;
use crate::oldbench::TransactionSize;
use crate::tx_size::TxSize;
use log::debug;
use log::Level::Debug;
use solana_rpc_client::nonblocking::rpc_client::RpcClient;
use solana_sdk::commitment_config::CommitmentConfig;
use solana_sdk::hash::Hash;
Expand Down
6 changes: 2 additions & 4 deletions benchrunner-service/src/args.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use itertools::Itertools;
use log::info;
use solana_sdk::signature::Keypair;

#[derive(Debug, Clone)]
Expand All @@ -26,10 +25,9 @@ pub fn read_tenant_configs(env_vars: Vec<(String, String)>) -> Vec<TenantConfig>
.nth(0)
.expect("tenant prefix must be split by underscore (e.g. TENANT99_SOMETHING")
.replace("TENANT", "");
let tenant_counter = tenant_counter
.parse::<u32>()
.expect("tenant counter must be a number (e.g. TENANT99)");
tenant_counter
.parse::<u32>()
.expect("tenant counter must be a number (e.g. TENANT99)")
});

let values = map
Expand Down
2 changes: 1 addition & 1 deletion benchrunner-service/src/postgres/metrics_dbstore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl BenchRunStatus {
pub async fn upsert_benchrun_status(
postgres_session: &PostgresSession,
tenant_config: &TenantConfig,
bench_config: &BenchConfig,
_bench_config: &BenchConfig,
benchrun_at: SystemTime,
status: BenchRunStatus,
) {
Expand Down
2 changes: 1 addition & 1 deletion benchrunner-service/src/prometheus/metrics_prometheus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ lazy_static::lazy_static! {

pub async fn publish_metrics_on_prometheus(
tenant_config: &TenantConfig,
bench_config: &BenchConfig,
_bench_config: &BenchConfig,
metric: &Metric,
) {
let dimensions: &[&str] = &[&tenant_config.tenant_id];
Expand Down

0 comments on commit db66f55

Please sign in to comment.