From 25491780df4d634dbe029ddcaed083101648bcc4 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sat, 17 Apr 2021 18:31:18 +0000 Subject: [PATCH] Remove unnecessary clone (#16621) (cherry picked from commit 6907a2366ebd9541965c488cb108bd85a17e79fb) Co-authored-by: Michael Vines --- core/src/replay_stage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/replay_stage.rs b/core/src/replay_stage.rs index 65af0d417f..a44c2de6d3 100644 --- a/core/src/replay_stage.rs +++ b/core/src/replay_stage.rs @@ -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()) {