From 6f2f246ec4265b6d717ecd6807e46359d3fcd4b2 Mon Sep 17 00:00:00 2001 From: Victor Gao Date: Tue, 8 Oct 2024 23:43:50 +0000 Subject: [PATCH] [aptos-workspace-server] fix config issue preventing indexer grpc from starting --- aptos-move/aptos-workspace-server/src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aptos-move/aptos-workspace-server/src/main.rs b/aptos-move/aptos-workspace-server/src/main.rs index ddae12ae2d4f9..0a6a5e5334355 100644 --- a/aptos-move/aptos-workspace-server/src/main.rs +++ b/aptos-move/aptos-workspace-server/src/main.rs @@ -3,7 +3,7 @@ use anyhow::Result; use aptos::node::local_testnet::HealthChecker; -use aptos_config::config::NodeConfig; +use aptos_config::config::{NodeConfig, TableInfoServiceMode}; use aptos_faucet_core::server::{FunderKeyEnum, RunConfig}; use aptos_node::{load_node_config, start_and_report_ports}; use aptos_types::network_address::{NetworkAddress, Protocol}; @@ -59,7 +59,8 @@ async fn spawn_node(test_dir: &Path) -> Result<()> { zero_all_ports(&mut node_config); node_config.indexer_grpc.enabled = true; node_config.indexer_grpc.use_data_service_interface = true; - node_config.storage.enable_indexer = true; + + node_config.indexer_table_info.table_info_service_mode = TableInfoServiceMode::IndexingOnly; node_config .api