From 634c24126d91be5cb0e2f91405f3f27210c3ed42 Mon Sep 17 00:00:00 2001 From: Kohei Tokunaga Date: Tue, 3 Dec 2024 23:34:44 +0900 Subject: [PATCH] Rely on OpenWriter for retrying opening writer Signed-off-by: Kohei Tokunaga --- nativeconverter/zstdchunked/zstdchunked.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nativeconverter/zstdchunked/zstdchunked.go b/nativeconverter/zstdchunked/zstdchunked.go index a69783c23..a23bd7af4 100644 --- a/nativeconverter/zstdchunked/zstdchunked.go +++ b/nativeconverter/zstdchunked/zstdchunked.go @@ -141,7 +141,7 @@ func LayerConvertFuncWithCompressionLevel(compressionLevel zstd.EncoderLevel, op } defer blob.Close() ref := fmt.Sprintf("convert-zstdchunked-from-%s", desc.Digest) - w, err := cs.Writer(ctx, content.WithRef(ref)) + w, err := content.OpenWriter(ctx, cs, content.WithRef(ref)) if err != nil { return nil, err }