summaryrefslogtreecommitdiff
path: root/vendor/github.com/klauspost/pgzip
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/klauspost/pgzip')
-rw-r--r--vendor/github.com/klauspost/pgzip/gzip.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/klauspost/pgzip/gzip.go b/vendor/github.com/klauspost/pgzip/gzip.go
index bb2e33941..cb3dc0896 100644
--- a/vendor/github.com/klauspost/pgzip/gzip.go
+++ b/vendor/github.com/klauspost/pgzip/gzip.go
@@ -85,7 +85,7 @@ func (z *Writer) SetConcurrency(blockSize, blocks int) error {
z.blockSize = blockSize
z.results = make(chan result, blocks)
z.blocks = blocks
- z.dstPool = sync.Pool{New: func() interface{} { return make([]byte, 0, blockSize+(blockSize)>>4) }}
+ z.dstPool.New = func() interface{} { return make([]byte, 0, blockSize+(blockSize)>>4) }
return nil
}