Merge pull request #46418 from vvoland/c8d-import-fix-double-close

c8d/import: Don't close compressed stream twice
This commit is contained in:
Sebastiaan van Stijn 2023-09-07 16:30:01 +02:00 committed by GitHub
commit de391bc48b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -258,7 +258,6 @@ func compressAndWriteBlob(ctx context.Context, cs content.Store, compression arc
if err != nil {
return "", "", errdefs.InvalidParameter(err)
}
defer compressor.Close()
writeChan := make(chan digest.Digest)
// Start copying the blob to the content store from the pipe.