From bcc87bb89c0c519407523dc0bce8c9508ea426e4 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Sat, 29 Aug 2020 12:59:31 -0400 Subject: [PATCH] Use default writer --- cacher/cacher.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cacher/cacher.go b/cacher/cacher.go index 5bf4506..4f46718 100644 --- a/cacher/cacher.go +++ b/cacher/cacher.go @@ -121,11 +121,7 @@ func (c *Cacher) Save(ctx context.Context, i *SaveRequest) (retErr error) { } // Create the gzip writer - gzw, err := gzip.NewWriterLevel(gcsw, gzip.BestSpeed) - if err != nil { - retErr = fmt.Errorf("failed to create gzip writer: %w", err) - return - } + gzw := gzip.NewWriter(gcsw) defer func() { c.log("closing gzip writer") if cerr := gzw.Close(); cerr != nil {