Bump indicatif from 0.15.0 to 0.16.2 (#17628)

* Bump indicatif from 0.15.0 to 0.16.2

Bumps [indicatif](https://github.com/mitsuhiko/indicatif) from 0.15.0 to 0.16.2.
- [Release notes](https://github.com/mitsuhiko/indicatif/releases)
- [Commits](https://github.com/mitsuhiko/indicatif/compare/0.15.0...0.16.2)

Signed-off-by: dependabot[bot] <support@github.com>

* [auto-commit] Update all Cargo lock files

* Fix message types

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
dependabot[bot]
2021-06-01 17:38:02 +00:00
committed by GitHub
parent a0d721c6bd
commit a43c29e858
18 changed files with 52 additions and 56 deletions

View File

@ -20,7 +20,7 @@ console = "0.14.1"
dirs-next = "2.0.0"
log = "0.4.11"
Inflector = "0.11.4"
indicatif = "0.15.0"
indicatif = "0.16.2"
humantime = "2.0.1"
num-traits = "0.2"
pretty-hex = "0.2.1"

View File

@ -737,12 +737,10 @@ pub fn process_catchup(
if let Some(rpc_addr) = contact_info.rpc {
break rpc_addr;
}
progress_bar.set_message(&format!("RPC service not found for {}", node_pubkey));
progress_bar.set_message(format!("RPC service not found for {}", node_pubkey));
} else {
progress_bar.set_message(&format!(
"Contact information not found for {}",
node_pubkey
));
progress_bar
.set_message(format!("Contact information not found for {}", node_pubkey));
}
sleep(Duration::from_secs(sleep_interval as u64));
};
@ -758,7 +756,7 @@ pub fn process_catchup(
Ok(reported_node_pubkey) => break reported_node_pubkey,
Err(err) => {
if let ClientErrorKind::Reqwest(err) = err.kind() {
progress_bar.set_message(&format!("Connection failed: {}", err));
progress_bar.set_message(format!("Connection failed: {}", err));
sleep(Duration::from_secs(sleep_interval as u64));
continue;
}
@ -858,7 +856,7 @@ pub fn process_catchup(
}
};
progress_bar.set_message(&format!(
progress_bar.set_message(format!(
"{} slot(s) {} (us:{} them:{}){}",
slot_distance.abs(),
if slot_distance >= 0 {
@ -1134,7 +1132,7 @@ pub fn process_show_block_production(
};
let progress_bar = new_spinner_progress_bar();
progress_bar.set_message(&format!(
progress_bar.set_message(format!(
"Fetching confirmed blocks between slots {} and {}...",
start_slot, end_slot
));
@ -1197,7 +1195,7 @@ pub fn process_show_block_production(
let mut leader_slot_count = HashMap::new();
let mut leader_skipped_slots = HashMap::new();
progress_bar.set_message(&format!("Fetching leader schedule for epoch {}...", epoch));
progress_bar.set_message(format!("Fetching leader schedule for epoch {}...", epoch));
let leader_schedule = rpc_client
.get_leader_schedule_with_commitment(Some(start_slot), CommitmentConfig::finalized())?;
if leader_schedule.is_none() {
@ -1216,7 +1214,7 @@ pub fn process_show_block_production(
}
}
progress_bar.set_message(&format!(
progress_bar.set_message(format!(
"Processing {} slots containing {} blocks and {} empty slots...",
total_slots, total_blocks_produced, total_slots_skipped
));
@ -1610,9 +1608,8 @@ pub fn process_live_slots(config: &CliConfig) -> ProcessResult {
"{:?} | root slot advancing at {:.2} slots/second",
new_info, slots_per_second
)
}
.to_owned();
slot_progress.set_message(&message);
};
slot_progress.set_message(message.clone());
if let Some(previous) = current {
let slot_delta: i64 = new_info.slot as i64 - previous.slot as i64;

View File

@ -2012,7 +2012,7 @@ fn send_and_confirm_transactions_with_spinner<T: Signers>(
.ok();
}
pending_transactions.insert(transaction.signatures[0], transaction);
progress_bar.set_message(&format!(
progress_bar.set_message(format!(
"[{}/{}] Transactions sent",
pending_transactions.len(),
num_transactions
@ -2050,7 +2050,7 @@ fn send_and_confirm_transactions_with_spinner<T: Signers>(
}
slot = rpc_client.get_slot()?;
progress_bar.set_message(&format!(
progress_bar.set_message(format!(
"[{}/{}] Transactions confirmed. Retrying in {} slots",
num_transactions - pending_transactions.len(),
num_transactions,