Cleanup from PR #25914 (#26644)

This commit is contained in:
Will Hickey 2022-07-20 00:01:35 -05:00 committed by GitHub
parent 8bc8f77820
commit c831185968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 9 deletions

View File

@ -213,12 +213,6 @@ fn main() {
.takes_value(true) .takes_value(true)
.help("Number of threads to use in the banking stage"), .help("Number of threads to use in the banking stage"),
) )
.arg(
Arg::new("log_messages_bytes_limit")
.long("log-messages-bytes-limit")
.takes_value(false)
.help("Maximum number of bytes written to the program log before truncation"),
)
.arg( .arg(
Arg::new("tpu_use_quic") Arg::new("tpu_use_quic")
.long("tpu-use-quic") .long("tpu-use-quic")
@ -242,7 +236,6 @@ fn main() {
let write_lock_contention = matches let write_lock_contention = matches
.value_of_t::<WriteLockContention>("write_lock_contention") .value_of_t::<WriteLockContention>("write_lock_contention")
.unwrap_or(WriteLockContention::None); .unwrap_or(WriteLockContention::None);
let log_messages_bytes_limit = matches.value_of_t::<usize>("log_messages_bytes_limit").ok();
let mint_total = 1_000_000_000_000; let mint_total = 1_000_000_000_000;
let GenesisConfigInfo { let GenesisConfigInfo {
@ -363,7 +356,7 @@ fn main() {
None, None,
replay_vote_sender, replay_vote_sender,
Arc::new(RwLock::new(CostModel::default())), Arc::new(RwLock::new(CostModel::default())),
log_messages_bytes_limit, None,
Arc::new(connection_cache), Arc::new(connection_cache),
bank_forks.clone(), bank_forks.clone(),
); );

View File

@ -2645,7 +2645,7 @@ pub fn main() {
accounts_shrink_ratio, accounts_shrink_ratio,
runtime_config: RuntimeConfig { runtime_config: RuntimeConfig {
bpf_jit: !matches.is_present("no_bpf_jit"), bpf_jit: !matches.is_present("no_bpf_jit"),
log_messages_bytes_limit: value_t!(matches, "log_messages_bytes_limit", usize).ok(), log_messages_bytes_limit: value_of(&matches, "log_messages_bytes_limit"),
..RuntimeConfig::default() ..RuntimeConfig::default()
}, },
enable_quic_servers, enable_quic_servers,