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)
.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::new("tpu_use_quic")
.long("tpu-use-quic")
@ -242,7 +236,6 @@ fn main() {
let write_lock_contention = matches
.value_of_t::<WriteLockContention>("write_lock_contention")
.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 GenesisConfigInfo {
@ -363,7 +356,7 @@ fn main() {
None,
replay_vote_sender,
Arc::new(RwLock::new(CostModel::default())),
log_messages_bytes_limit,
None,
Arc::new(connection_cache),
bank_forks.clone(),
);

View File

@ -2645,7 +2645,7 @@ pub fn main() {
accounts_shrink_ratio,
runtime_config: RuntimeConfig {
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()
},
enable_quic_servers,