forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removes unnecessary weight updates in WeightedShuffle::search (#4499)
Below line is a left-over from the old code and is not needed any more: https://github.com/anza-xyz/agave/blob/1b9996194/gossip/src/weighted_shuffle.rs#L144 The commit also removes unnecessary trait constraints and adds bounds check to WeightedShuffle::remove_index.
- Loading branch information
1 parent
91d0d0c
commit d3305e3
Showing
1 changed file
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters