Remove unnecessary clone (#16621)
(cherry picked from commit 6907a2366e
)
Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
@ -1448,7 +1448,7 @@ impl ReplayStage {
|
|||||||
}
|
}
|
||||||
Some(authorized_voter_keypair) => authorized_voter_keypair,
|
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
|
// 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()) {
|
let vote_ix = if bank.slot() > Self::get_unlock_switch_vote_slot(bank.cluster_type()) {
|
||||||
|
Reference in New Issue
Block a user