Remove unnecessary clone

This commit is contained in:
Michael Vines
2021-04-16 21:14:29 -07:00
parent 5399faaf53
commit 6907a2366e

View File

@ -1418,7 +1418,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()) {