From 6907a2366ebd9541965c488cb108bd85a17e79fb Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 16 Apr 2021 21:14:29 -0700 Subject: [PATCH] Remove unnecessary clone --- 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 e4740548d6..ad3bfd4b1d 100644 --- a/core/src/replay_stage.rs +++ b/core/src/replay_stage.rs @@ -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()) {