From a4fab678114b61c1c3473661577797ecf029514d Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 20 Jun 2026 01:03:28 +0900 Subject: internal/pkg: optionally exempt implementations from cures counter This avoids holding up many slots with a long pipeline. Signed-off-by: Ophestra --- internal/pkg/compress.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/pkg/compress.go') diff --git a/internal/pkg/compress.go b/internal/pkg/compress.go index 6d69143b..838cd98a 100644 --- a/internal/pkg/compress.go +++ b/internal/pkg/compress.go @@ -25,6 +25,7 @@ type decompressArtifact struct { } var _ FileArtifact = new(decompressArtifact) +var _ CuresExempt = new(decompressArtifact) // decompressArtifactNamed embeds decompressArtifact for a [fmt.Stringer] stream. type decompressArtifactNamed struct { @@ -117,3 +118,7 @@ func (a *decompressArtifact) Cure(r *RContext) (io.ReadCloser, error) { return nil, os.ErrInvalid } } + +// CuresExempt exempts the cheap [KindDecompress] implementation often part of +// a [FileArtifact] pipeline. +func (*decompressArtifact) CuresExempt() {} -- cgit v1.3.1