Skip to content

Commit

Permalink
chore(indexer-alt): rename tx_calls_fun -> tx_calls
Browse files Browse the repository at this point in the history
## Description

I partially simplified the naming of `tx_calls_fun` to `tx_calls` but
did not do a complete job -- this change completes it.

## Test plan

CI
  • Loading branch information
amnn committed Nov 4, 2024
1 parent 5d2dd9b commit 076177d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/sui-indexer-alt/src/handlers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub mod sum_packages;
pub mod tx_affected_addresses;
pub mod tx_affected_objects;
pub mod tx_balance_changes;
pub mod tx_calls_fun;
pub mod tx_calls;
pub mod tx_digests;
pub mod tx_kinds;
pub mod wal_coin_balances;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ use crate::{
schema::tx_calls,
};

pub struct TxCallsFun;
pub struct TxCalls;

impl Processor for TxCallsFun {
const NAME: &'static str = "tx_calls_fun";
impl Processor for TxCalls {
const NAME: &'static str = "tx_calls";

type Value = StoredTxCalls;

Expand Down Expand Up @@ -53,7 +53,7 @@ impl Processor for TxCallsFun {
}

#[async_trait::async_trait]
impl Handler for TxCallsFun {
impl Handler for TxCalls {
const MIN_EAGER_ROWS: usize = 100;
const MAX_CHUNK_ROWS: usize = 1000;
const MAX_PENDING_ROWS: usize = 10000;
Expand Down
4 changes: 2 additions & 2 deletions crates/sui-indexer-alt/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use sui_indexer_alt::{
sum_coin_balances::SumCoinBalances, sum_displays::SumDisplays, sum_obj_types::SumObjTypes,
sum_packages::SumPackages, tx_affected_addresses::TxAffectedAddress,
tx_affected_objects::TxAffectedObjects, tx_balance_changes::TxBalanceChanges,
tx_calls_fun::TxCallsFun, tx_digests::TxDigests, tx_kinds::TxKinds,
tx_calls::TxCalls, tx_digests::TxDigests, tx_kinds::TxKinds,
wal_coin_balances::WalCoinBalances, wal_obj_types::WalObjTypes,
},
Indexer,
Expand Down Expand Up @@ -61,7 +61,7 @@ async fn main() -> Result<()> {
indexer.concurrent_pipeline(TxAffectedAddress).await?;
indexer.concurrent_pipeline(TxAffectedObjects).await?;
indexer.concurrent_pipeline(TxBalanceChanges).await?;
indexer.concurrent_pipeline(TxCallsFun).await?;
indexer.concurrent_pipeline(TxCalls).await?;
indexer.concurrent_pipeline(TxDigests).await?;
indexer.concurrent_pipeline(TxKinds).await?;
indexer.concurrent_pipeline(WalCoinBalances).await?;
Expand Down

0 comments on commit 076177d

Please sign in to comment.