Skip to content

Commit

Permalink
Merge pull request moby#21863 from LK4D4/narrow_interface
Browse files Browse the repository at this point in the history
pkg/archive: use more narrow interface for CompressStream
  • Loading branch information
cpuguy83 committed Apr 8, 2016
2 parents 681b5e0 + 9b2c3aa commit 64f1025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/archive/archive.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 64f1025

Please sign in to comment.