(w *querierWorker)
| 104 | } |
| 105 | |
| 106 | func 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 | |
| 118 | type mockProcessor struct{} |
| 119 |
no test coverage detected