From 9b2c3aa8946eee15e5938f03c2202b16a7f22875 Mon Sep 17 00:00:00 2001 From: Alexander Morozov Date: Thu, 7 Apr 2016 13:21:05 -0700 Subject: [PATCH] pkg/archive: use more narrow interface for CompressStream Signed-off-by: Alexander Morozov --- pkg/archive/archive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/archive/archive.go b/pkg/archive/archive.go index 7e296c1cb7..5f8cd091d8 100644 --- a/pkg/archive/archive.go +++ b/pkg/archive/archive.go @@ -193,7 +193,7 @@ func DecompressStream(archive io.Reader) (io.ReadCloser, error) { } // CompressStream compresses the dest with specified compression algorithm. -func CompressStream(dest io.WriteCloser, compression Compression) (io.WriteCloser, error) { +func CompressStream(dest io.Writer, compression Compression) (io.WriteCloser, error) { p := pools.BufioWriter32KPool buf := p.Get(dest) switch compression {