From 076177d992f366dafcd206561234edaa62a3d2a5 Mon Sep 17 00:00:00 2001 From: Ashok Menon Date: Mon, 4 Nov 2024 11:46:46 -0800 Subject: [PATCH] chore(indexer-alt): rename tx_calls_fun -> tx_calls ## 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 --- crates/sui-indexer-alt/src/handlers/mod.rs | 2 +- .../src/handlers/{tx_calls_fun.rs => tx_calls.rs} | 8 ++++---- crates/sui-indexer-alt/src/main.rs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) rename crates/sui-indexer-alt/src/handlers/{tx_calls_fun.rs => tx_calls.rs} (93%) diff --git a/crates/sui-indexer-alt/src/handlers/mod.rs b/crates/sui-indexer-alt/src/handlers/mod.rs index 5157eced41148..038ae73102d86 100644 --- a/crates/sui-indexer-alt/src/handlers/mod.rs +++ b/crates/sui-indexer-alt/src/handlers/mod.rs @@ -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; diff --git a/crates/sui-indexer-alt/src/handlers/tx_calls_fun.rs b/crates/sui-indexer-alt/src/handlers/tx_calls.rs similarity index 93% rename from crates/sui-indexer-alt/src/handlers/tx_calls_fun.rs rename to crates/sui-indexer-alt/src/handlers/tx_calls.rs index 145c504ea5b39..f72dfbd2abf8e 100644 --- a/crates/sui-indexer-alt/src/handlers/tx_calls_fun.rs +++ b/crates/sui-indexer-alt/src/handlers/tx_calls.rs @@ -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; @@ -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; diff --git a/crates/sui-indexer-alt/src/main.rs b/crates/sui-indexer-alt/src/main.rs index 410c424dde359..ac4531a905d5f 100644 --- a/crates/sui-indexer-alt/src/main.rs +++ b/crates/sui-indexer-alt/src/main.rs @@ -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, @@ -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?;