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

Function NewFIFORequestQueue

pkg/scheduler/queue/user_request_queue.go:23–25  ·  view source on GitHub ↗
(queue chan Request, userID string, queueLength *prometheus.GaugeVec)

Source from the content-addressed store, hash-verified

21}
22
23func NewFIFORequestQueue(queue chan Request, userID string, queueLength *prometheus.GaugeVec) *FIFORequestQueue {
24 return &FIFORequestQueue{queue: queue, userID: userID, queueLength: queueLength}
25}
26
27func (f *FIFORequestQueue) enqueueRequest(r Request) {
28 f.queue <- r

Callers 2

TestFIFORequestQueueFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestFIFORequestQueueFunction · 0.68