mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 16:55:46 +00:00
Change state cache size default to 32. (#7055)
This commit is contained in:
@@ -828,7 +828,7 @@ pub fn cli_app() -> Command {
|
|||||||
.long("state-cache-size")
|
.long("state-cache-size")
|
||||||
.value_name("STATE_CACHE_SIZE")
|
.value_name("STATE_CACHE_SIZE")
|
||||||
.help("Specifies the size of the state cache")
|
.help("Specifies the size of the state cache")
|
||||||
.default_value("128")
|
.default_value("32")
|
||||||
.action(ArgAction::Set)
|
.action(ArgAction::Set)
|
||||||
.display_order(0)
|
.display_order(0)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1873,7 +1873,7 @@ fn block_cache_size_flag() {
|
|||||||
fn state_cache_size_default() {
|
fn state_cache_size_default() {
|
||||||
CommandLineTest::new()
|
CommandLineTest::new()
|
||||||
.run_with_zero_port()
|
.run_with_zero_port()
|
||||||
.with_config(|config| assert_eq!(config.store.state_cache_size, new_non_zero_usize(128)));
|
.with_config(|config| assert_eq!(config.store.state_cache_size, new_non_zero_usize(32)));
|
||||||
}
|
}
|
||||||
#[test]
|
#[test]
|
||||||
fn state_cache_size_flag() {
|
fn state_cache_size_flag() {
|
||||||
|
|||||||
Reference in New Issue
Block a user