From 96c5b1f62a3b90235c579cc650b80b4a99c82ae6 Mon Sep 17 00:00:00 2001 From: Andrew Fitzgerald Date: Tue, 14 Jan 2025 13:21:02 -0600 Subject: [PATCH] expect instead of default --- local-cluster/src/local_cluster.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local-cluster/src/local_cluster.rs b/local-cluster/src/local_cluster.rs index 388a906a4cfc2e..7b07b8a15f9ced 100644 --- a/local-cluster/src/local_cluster.rs +++ b/local-cluster/src/local_cluster.rs @@ -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