diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-25 16:07:07 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-25 16:10:34 +0900 |
| commit | 861801597d800661b26ca03e503cc571537e1304 (patch) | |
| tree | 5b4777b7b160811c2a70f10ddcdd0c931af8567a /internal/pkg/file.go | |
| parent | 334578fddeda6c952b1c2e35829c91c9da72747e (diff) | |
internal/pkg: expose response body
This uses the new measured reader provided by Cache. This should make httpArtifact zero-copy.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/file.go')
| -rw-r--r-- | internal/pkg/file.go | 3 |
1 files changed, 1 insertions, 2 deletions
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 } |
