mirror of https://github.com/perkeep/perkeep.git
camget: buffer the workc channel
Change-Id: Ic6bf443c4d91f240b0b86c34a33bf74a1f2b627f
This commit is contained in:
parent
9f6776dddb
commit
ff9492c6cd
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue