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/pkg_test.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/pkg_test.go')
| -rw-r--r-- | internal/pkg/pkg_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/pkg/pkg_test.go b/internal/pkg/pkg_test.go index 903db563..fe618a6a 100644 --- a/internal/pkg/pkg_test.go +++ b/internal/pkg/pkg_test.go @@ -119,7 +119,7 @@ type stubFile struct { stubArtifact } -func (a *stubFile) Cure(context.Context) (io.ReadCloser, error) { +func (a *stubFile) Cure(*pkg.RContext) (io.ReadCloser, error) { return io.NopCloser(bytes.NewReader(a.data)), a.err } |
