From 955d7782929d53311c9b85fa2d84e3588ff95c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20Dimitroff=20H=C3=B3di?= Date: Fri, 22 Mar 2024 15:16:16 -0300 Subject: [PATCH] removed unnecessary borrow --- node/actors/bft/src/leader/replica_commit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/actors/bft/src/leader/replica_commit.rs b/node/actors/bft/src/leader/replica_commit.rs index 03ee1b85..c84e4919 100644 --- a/node/actors/bft/src/leader/replica_commit.rs +++ b/node/actors/bft/src/leader/replica_commit.rs @@ -163,7 +163,7 @@ impl StateMachine { .config .genesis() .validators - .weight_from_msgs(&by_proposal_before.entry(proposal).or_default()); + .weight_from_msgs(by_proposal_before.entry(proposal).or_default()); // to ensure this is the first time the threshold has been reached debug_assert!(previous_weight < threshold);