Skip to content

Commit e15bfef

Browse files
committed
compression: fix zstd Compression to return Setting
1 parent 8326c64 commit e15bfef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/compression/zstd_nocgo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func getZstdCompressor(level int) *zstdCompressor {
3434
// relies on CGo.
3535
const UseStandardZstdLib = false
3636

37-
func (z *zstdCompressor) Compress(compressedBuf, b []byte) []byte {
37+
func (z *zstdCompressor) Compress(compressedBuf, b []byte) ([]byte, Setting) {
3838
if len(compressedBuf) < binary.MaxVarintLen64 {
3939
compressedBuf = append(compressedBuf, make([]byte, binary.MaxVarintLen64-len(compressedBuf))...)
4040
}

0 commit comments

Comments
 (0)