MCPcopy Create free account
hub / github.com/cortexproject/cortex / Peek

Method Peek

pkg/util/priority_queue.go:123–126  ·  view source on GitHub ↗

Peek will return the op with the highest priority without removing it from the queue

()

Source from the content-addressed store, hash-verified

121
122// Peek will return the op with the highest priority without removing it from the queue
123func (pq *PriorityQueue) Peek() PriorityOp {
124 op := pq.queue[0]
125 return op
126}

Callers 5

dequeueRequestMethod · 0.80
maintenanceLoopMethod · 0.80

Calls

no outgoing calls

Tested by 3