Fix worker.Immediately to be 0 instead of 2

worker.Immediately had a value of 2 which failed the comparaison with 0 (no timeout), causing jobs to end after 2 seconds.
This commit is contained in:
Sam Grimee 2014-01-15 00:27:50 +01:00
parent 57337a6004
commit 54286d5aa4

View File

@ -12,7 +12,9 @@ import (
const (
Unlimited = iota
OneByOne
)
const (
Immediately = iota
)