From 54286d5aa413c190f771953602b71261563ce3ff Mon Sep 17 00:00:00 2001 From: Sam Grimee Date: Wed, 15 Jan 2014 00:27:50 +0100 Subject: [PATCH] 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. --- worker/worker.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/worker/worker.go b/worker/worker.go index 82d3747..5cfb02d 100644 --- a/worker/worker.go +++ b/worker/worker.go @@ -12,7 +12,9 @@ import ( const ( Unlimited = iota OneByOne +) +const ( Immediately = iota )