From 8ddba52c2a63db67f002141959f7558e71d55567 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 18 Nov 2020 09:45:51 +0100 Subject: [PATCH] compression: change return type for zstdWriterWithLevel Signed-off-by: Giuseppe Scrivano --- pkg/compression/zstd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/compression/zstd.go b/pkg/compression/zstd.go index 962fe96764..867d3ddbc0 100644 --- a/pkg/compression/zstd.go +++ b/pkg/compression/zstd.go @@ -40,7 +40,7 @@ func zstdWriter(dest io.Writer) (io.WriteCloser, error) { return zstd.NewWriter(dest) } -func zstdWriterWithLevel(dest io.Writer, level int) (io.WriteCloser, error) { +func zstdWriterWithLevel(dest io.Writer, level int) (*zstd.Encoder, error) { el := zstd.EncoderLevelFromZstd(level) return zstd.NewWriter(dest, zstd.WithEncoderLevel(el)) }