(userID string)
| 208 | } |
| 209 | |
| 210 | func (q *queues) createUserRequestQueue(userID string) userRequestQueue { |
| 211 | if q.limits.QueryPriority(userID).Enabled { |
| 212 | return NewPriorityRequestQueue(util.NewPriorityQueue(nil), userID, q.queueLength) |
| 213 | } |
| 214 | |
| 215 | queueSize := q.limits.MaxOutstandingPerTenant(userID) |
| 216 | |
| 217 | return NewFIFORequestQueue(make(chan Request, queueSize), userID, q.queueLength) |
| 218 | } |
| 219 | |
| 220 | // Finds next queue for the querier. To support fair scheduling between users, client is expected |
| 221 | // to pass last user index returned by this function as argument. Is there was no previous |
no test coverage detected