From ff9492c6cd364927bd3e712c6de4f8777fbca0f9 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sat, 5 Jan 2013 16:44:43 -0800 Subject: [PATCH] camget: buffer the workc channel Change-Id: Ic6bf443c4d91f240b0b86c34a33bf74a1f2b627f --- cmd/camget/camget.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/camget/camget.go b/cmd/camget/camget.go index 6ea775635..f1c363586 100644 --- a/cmd/camget/camget.go +++ b/cmd/camget/camget.go @@ -247,7 +247,7 @@ func smartFetch(src blobref.StreamingFetcher, targ string, br *blobref.BlobRef) br *blobref.BlobRef errc chan<- error } - workc := make(chan work) + workc := make(chan work, len(sc.Members)) defer close(workc) for i := 0; i < numWorkers; i++ { go func() {