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

Function getConcurrentProcessors

pkg/querier/worker/worker_test.go:106–116  ·  view source on GitHub ↗
(w *querierWorker)

Source from the content-addressed store, hash-verified

104}
105
106func getConcurrentProcessors(w *querierWorker) int {
107 result := 0
108 w.mu.Lock()
109 defer w.mu.Unlock()
110
111 for _, mgr := range w.managers {
112 result += int(mgr.currentProcessors.Load())
113 }
114
115 return result
116}
117
118type mockProcessor struct{}
119

Callers 1

TestResetConcurrencyFunction · 0.85

Calls 1

LoadMethod · 0.80

Tested by

no test coverage detected