Previously, we deleted empty channels when a job was dequeued. This is completely wrong because there still might be some clients waiting for a job. This commit removes the cleanup and adds a regression test. Note that this has the potential to leak memory if we ever use a lot of job types. Currently, we have just handful of them, so this is fine. Signed-off-by: Ondřej Budai <ondrej@budai.cz> |
||
|---|---|---|
| .. | ||
| fsjobqueue.go | ||
| fsjobqueue_test.go | ||