Commit 8189606e authored by kenshin-samourai's avatar kenshin-samourai
Browse files

remove unused tx_cach_size config parameter

parent eba463c9
...@@ -66,12 +66,6 @@ type = "usize" ...@@ -66,12 +66,6 @@ type = "usize"
doc = "Number of threads used for bulk indexing (default: use the # of CPUs)" doc = "Number of threads used for bulk indexing (default: use the # of CPUs)"
default = "0" default = "0"
[[param]]
name = "tx_cache_size_mb"
type = "f32"
doc = "Total size of transactions to cache (MB)"
default = "10.0"
[[param]] [[param]]
name = "blocktxids_cache_size_mb" name = "blocktxids_cache_size_mb"
type = "f32" type = "f32"
......
...@@ -145,7 +145,6 @@ pub struct Config { ...@@ -145,7 +145,6 @@ pub struct Config {
pub jsonrpc_import: bool, pub jsonrpc_import: bool,
pub index_batch_size: usize, pub index_batch_size: usize,
pub bulk_index_threads: usize, pub bulk_index_threads: usize,
pub tx_cache_size: usize,
pub txid_limit: usize, pub txid_limit: usize,
pub blocktxids_cache_size: usize, pub blocktxids_cache_size: usize,
} }
...@@ -255,7 +254,6 @@ impl Config { ...@@ -255,7 +254,6 @@ impl Config {
jsonrpc_import: config.jsonrpc_import, jsonrpc_import: config.jsonrpc_import,
index_batch_size: config.index_batch_size, index_batch_size: config.index_batch_size,
bulk_index_threads: config.bulk_index_threads, bulk_index_threads: config.bulk_index_threads,
tx_cache_size: (config.tx_cache_size_mb * MB) as usize,
blocktxids_cache_size: (config.blocktxids_cache_size_mb * MB) as usize, blocktxids_cache_size: (config.blocktxids_cache_size_mb * MB) as usize,
txid_limit: config.txid_limit, txid_limit: config.txid_limit,
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment