Skip to content

Commit

Permalink
Rely on contaienrd's GC for cleanup of temporary content
Browse files Browse the repository at this point in the history
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
Co-authored-by: apostasie <spam_blackhole@farcloser.world>
  • Loading branch information
ktock and apostasie committed Dec 10, 2024
1 parent 1d34a1b commit 570ba70
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions nativeconverter/zstdchunked/zstdchunked.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ func LayerConvertFuncWithCompressionLevel(compressionLevel zstd.EncoderLevel, op
if uncompressedDesc == nil {
return nil, fmt.Errorf("unexpectedly got the same blob after compression (%s, %q)", desc.Digest, desc.MediaType)
}
defer func() {
if err := cs.Delete(ctx, uncompressedDesc.Digest); err != nil {
log.G(ctx).WithError(err).WithField("uncompressedDesc", uncompressedDesc).Warn("failed to remove tmp uncompressed layer")
}
}()
log.G(ctx).Debugf("zstdchunked: uncompressed %s into %s", desc.Digest, uncompressedDesc.Digest)
}

Expand Down

0 comments on commit 570ba70

Please sign in to comment.