MCPcopy Index your code
hub / github.com/cortexproject/cortex / Len

Method Len

pkg/util/priority_queue.go:27–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25type queue []PriorityOp
26
27func (q queue) Len() int { return len(q) }
28func (q queue) Less(i, j int) bool { return q[i].Priority() > q[j].Priority() }
29func (q queue) Swap(i, j int) { q[i], q[j] = q[j], q[i] }
30

Calls

no outgoing calls