From 861801597d800661b26ca03e503cc571537e1304 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 25 Jan 2026 16:07:07 +0900 Subject: internal/pkg: expose response body This uses the new measured reader provided by Cache. This should make httpArtifact zero-copy. Signed-off-by: Ophestra --- internal/pkg/file.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/pkg/file.go') diff --git a/internal/pkg/file.go b/internal/pkg/file.go index 03197c59..9e075cd5 100644 --- a/internal/pkg/file.go +++ b/internal/pkg/file.go @@ -2,7 +2,6 @@ package pkg import ( "bytes" - "context" "crypto/sha512" "fmt" "io" @@ -54,6 +53,6 @@ func (a *fileArtifact) Checksum() Checksum { } // Cure returns the caller-supplied data. -func (a *fileArtifact) Cure(context.Context) (io.ReadCloser, error) { +func (a *fileArtifact) Cure(*RContext) (io.ReadCloser, error) { return io.NopCloser(bytes.NewReader(*a)), nil } -- cgit v1.3.1