From 4649876956ab944d2a9ea8fc98c75dc8a9f5ef08 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 25 Jun 2022 00:36:16 +0200 Subject: Update dependencies (#1851) --- vendor/github.com/klauspost/compress/zstd/encoder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vendor/github.com/klauspost/compress/zstd/encoder.go') diff --git a/vendor/github.com/klauspost/compress/zstd/encoder.go b/vendor/github.com/klauspost/compress/zstd/encoder.go index dcc987a7..e6b1d01c 100644 --- a/vendor/github.com/klauspost/compress/zstd/encoder.go +++ b/vendor/github.com/klauspost/compress/zstd/encoder.go @@ -551,7 +551,7 @@ func (e *Encoder) EncodeAll(src, dst []byte) []byte { } // If we can do everything in one block, prefer that. - if len(src) <= maxCompressedBlockSize { + if len(src) <= e.o.blockSize { enc.Reset(e.o.dict, true) // Slightly faster with no history and everything in one block. if e.o.crc { -- cgit v1.2.3