(_ context.Context)
| 188 | } |
| 189 | |
| 190 | func (q *RequestQueue) forgetDisconnectedQueriers(_ context.Context) error { |
| 191 | q.mtx.Lock() |
| 192 | defer q.mtx.Unlock() |
| 193 | |
| 194 | if q.queues.forgetDisconnectedQueriers(time.Now()) > 0 { |
| 195 | // We need to notify goroutines cause having removed some queriers |
| 196 | // may have caused a resharding. |
| 197 | q.cond.Broadcast() |
| 198 | } |
| 199 | |
| 200 | return nil |
| 201 | } |
| 202 | |
| 203 | func (q *RequestQueue) stopping(_ error) error { |
| 204 | q.mtx.Lock() |