We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cefe16 commit ffe4195Copy full SHA for ffe4195
policy/lfu/priotiry_queue.go
@@ -52,7 +52,7 @@ func (l priorityQueue[K, V]) Less(i, j int) bool {
52
func (l priorityQueue[K, V]) Swap(i, j int) {
53
l[i], l[j] = l[j], l[i]
54
l[i].index = i
55
- l[i].index = j
+ l[j].index = j
56
}
57
58
func (l *priorityQueue[K, V]) Push(x interface{}) {
0 commit comments