Skip to content

Commit

Permalink
fixup: clippy start_indexer -> setup_indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
amnn committed Feb 12, 2025
1 parent cabb212 commit a2dcf95
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/sui-indexer-alt/src/benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use sui_pg_db::{reset_database, DbArgs};
use sui_synthetic_ingestion::synthetic_ingestion::read_ingestion_data;
use tokio_util::sync::CancellationToken;

use crate::{config::IndexerConfig, start_indexer};
use crate::{config::IndexerConfig, setup_indexer};

#[derive(clap::Args, Debug, Clone)]
pub struct BenchmarkArgs {
Expand Down Expand Up @@ -59,7 +59,7 @@ pub async fn run_benchmark(

let cur_time = Instant::now();

start_indexer(
setup_indexer(
db_args,
indexer_args,
client_args,
Expand All @@ -69,6 +69,8 @@ pub async fn run_benchmark(
CancellationToken::new(),
)
.await?
.run()
.await?
.await?;

let elapsed = Instant::now().duration_since(cur_time);
Expand Down

0 comments on commit a2dcf95

Please sign in to comment.