Skip to content

Commit

Permalink
common/prque: remove comment about int64 range
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Dec 8, 2022
1 parent a240e91 commit cbf88ac
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions common/prque/sstack.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ import "golang.org/x/exp/constraints"
const blockSize = 4096

// A prioritized item in the sorted stack.
//
// Note: priorities can "wrap around" the int64 range, a comes before b if (a.priority - b.priority) > 0.
// The difference between the lowest and highest priorities in the queue at any point should be less than 2^63.
type item[P constraints.Ordered, V any] struct {
value V
priority P
Expand Down

0 comments on commit cbf88ac

Please sign in to comment.