From e83d66772e8fbdd2904df93d9e5f57cf6da53674 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Mon, 22 Oct 2012 08:28:05 -0400 Subject: [PATCH] bugfix worker-pools --- examples/worker-pools/worker-pools.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/worker-pools/worker-pools.go b/examples/worker-pools/worker-pools.go index 71efafb..4aa5d69 100644 --- a/examples/worker-pools/worker-pools.go +++ b/examples/worker-pools/worker-pools.go @@ -3,6 +3,7 @@ package main +import "fmt" import "time" // Here's the worker, of which we'll run several @@ -12,7 +13,7 @@ import "time" // simulate an expensive task. func worker(id int, jobs <-chan int, results chan<- int) { for j := range jobs { - println("worker", id, "processing job", j) + fmt.Println("worker", id, "processing job", j) time.Sleep(time.Second) results <- j * 2 }