Remove unnecessary clone (#16621)

(cherry picked from commit 6907a2366e)

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
mergify[bot]
2021-04-17 18:31:18 +00:00
committed by GitHub
parent 4354ad3299
commit 25491780df

View File

@ -1448,7 +1448,7 @@ impl ReplayStage {
}
Some(authorized_voter_keypair) => authorized_voter_keypair,
};
let node_keypair = cluster_info.keypair.clone();
let node_keypair = &cluster_info.keypair;
// Send our last few votes along with the new one
let vote_ix = if bank.slot() > Self::get_unlock_switch_vote_slot(bank.cluster_type()) {