Skip to content

Commit

Permalink
compression: change return type for zstdWriterWithLevel
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
  • Loading branch information
giuseppe committed Nov 18, 2020
1 parent e2a0d50 commit 8ddba52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compression/zstd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 8ddba52

Please sign in to comment.