Skip to content

Commit

Permalink
Fix rpc config error
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyukang committed May 14, 2024
1 parent c88385f commit 3e0ec0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions ckb-bin/src/subcommand/run.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
use std::thread::available_parallelism;

use crate::helper::deadlock_detection;
use ckb_app_config::{ExitCode, RunArgs};
use ckb_async_runtime::{new_global_runtime, Handle};
use ckb_build_info::Version;
use ckb_launcher::Launcher;
use ckb_logger::info;
use ckb_stop_handler::{broadcast_exit_signals, wait_all_ckb_services_exit};
use std::thread::available_parallelism;

use ckb_types::core::cell::setup_system_cell_cache;

Expand Down
8 changes: 4 additions & 4 deletions util/app-config/src/configs/indexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ pub struct IndexerConfig {
/// The init tip block hash
#[serde(default)]
pub init_tip_hash: Option<H256>,
/// Rich indexer config options
#[serde(default)]
pub rich_indexer: RichIndexerConfig,
/// Max iterator next limit count
#[serde(default = "default_iterator_next_limit")]
pub iterator_next_limit: usize,
/// Rich indexer config options
#[serde(default)]
pub rich_indexer: RichIndexerConfig,
}

const fn default_poll_interval() -> u64 {
Expand All @@ -55,6 +55,7 @@ impl Default for IndexerConfig {
fn default() -> Self {
IndexerConfig {
poll_interval: default_poll_interval(),
iterator_next_limit: default_iterator_next_limit(),
index_tx_pool: false,
store: PathBuf::new(),
secondary_path: PathBuf::new(),
Expand All @@ -64,7 +65,6 @@ impl Default for IndexerConfig {
db_keep_log_file_num: None,
init_tip_hash: None,
rich_indexer: RichIndexerConfig::default(),
iterator_next_limit: default_iterator_next_limit(),
}
}
}
Expand Down

0 comments on commit 3e0ec0f

Please sign in to comment.