Skip to content

Commit

Permalink
Remove TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mdaiki0730 committed Nov 11, 2022
1 parent d62dc46 commit 50dfb9a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion libs/rand/sampling.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ type Candidate interface {
// Returns:
// samples - A randomly selected candidate from a set of candidates. NOTE that the same candidate may have been
// selected in duplicate.
// TODO: Change to a function that returns an error, as it is not desirable for the function to end with a panic.
func RandomSamplingWithPriority(
seed uint64, candidates []Candidate, sampleSize int, totalPriority uint64) (samples []Candidate) {

Expand Down

0 comments on commit 50dfb9a

Please sign in to comment.