Skip to content

Commit

Permalink
[indexer] introduce parameters remote_store_url (#17176)
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix-o authored and ebmifa committed Apr 22, 2024
1 parent 637f269 commit 67f3412
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/sui-indexer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use clap::Parser;
use jsonrpsee::http_client::{HeaderMap, HeaderValue, HttpClient, HttpClientBuilder};
use metrics::IndexerMetrics;
use prometheus::Registry;
use std::path::PathBuf;
use tokio::runtime::Handle;
use tracing::warn;
use url::Url;
Expand Down Expand Up @@ -59,6 +60,8 @@ pub struct IndexerConfig {
pub db_name: Option<String>,
#[clap(long, default_value = "http://0.0.0.0:9000", global = true)]
pub rpc_client_url: String,
#[clap(long, default_value = Some("https://checkpoints.mainnet.sui.io"), global = true)]
pub remote_store_url: Option<String>,
#[clap(long, default_value = "0.0.0.0", global = true)]
pub client_metric_host: String,
#[clap(long, default_value = "9184", global = true)]
Expand All @@ -73,6 +76,8 @@ pub struct IndexerConfig {
pub fullnode_sync_worker: bool,
#[clap(long)]
pub rpc_server_worker: bool,
#[clap(long)]
pub data_ingestion_path: Option<PathBuf>,
}

impl IndexerConfig {
Expand Down Expand Up @@ -114,13 +119,15 @@ impl Default for IndexerConfig {
db_port: None,
db_name: None,
rpc_client_url: "http://127.0.0.1:9000".to_string(),
remote_store_url: Some("https://checkpoints.mainnet.sui.io".to_string()),
client_metric_host: "0.0.0.0".to_string(),
client_metric_port: 9184,
rpc_server_url: "0.0.0.0".to_string(),
rpc_server_port: 9000,
reset_db: false,
fullnode_sync_worker: true,
rpc_server_worker: true,
data_ingestion_path: None,
}
}
}
Expand Down

0 comments on commit 67f3412

Please sign in to comment.