Skip to content

Commit

Permalink
expect instead of default
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge committed Jan 14, 2025
1 parent 7fdaea4 commit 96c5b1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions local-cluster/src/local_cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,8 @@ impl LocalCluster {
let validator_balance = client
.rpc_client()
.get_balance_with_commitment(&validator_pubkey, CommitmentConfig::processed())
.map(|response| response.value)
.unwrap_or_default();
.expect("received response")
.value;
info!(
"validator {} balance {}",
validator_pubkey, validator_balance
Expand Down

0 comments on commit 96c5b1f

Please sign in to comment.