Skip to content

Commit

Permalink
removed unnecessary borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
ElFantasma committed Mar 22, 2024
1 parent 8f52b61 commit 955d778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/actors/bft/src/leader/replica_commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 955d778

Please sign in to comment.