()
| 48 | } |
| 49 | |
| 50 | func (q *queueRunner) stopProcessLoop() { |
| 51 | if q.cancel != nil { |
| 52 | q.cancel() |
| 53 | } |
| 54 | if q.wg != nil { |
| 55 | q.wg.Wait() |
| 56 | } |
| 57 | err := q.queue.CleanQueues(context.Background()) |
| 58 | if err != nil { |
| 59 | panic(err) |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | type testWorker struct { |
| 64 | processed chan []byte |
no test coverage detected