From e91049c3c5a81bc18fb5394de92a6d7617421938 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 6 Jan 2026 00:56:49 +0900 Subject: internal/pkg: pass cure context as single value This cleans up the function signature and makes backwards compatible API changes possible. Signed-off-by: Ophestra --- internal/pkg/net.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'internal/pkg/net.go') diff --git a/internal/pkg/net.go b/internal/pkg/net.go index 074c5f79..9a6814f8 100644 --- a/internal/pkg/net.go +++ b/internal/pkg/net.go @@ -7,8 +7,6 @@ import ( "net/http" "sync" "syscall" - - "hakurei.app/container/check" ) // An httpArtifact is an [Artifact] backed by a [http] url string. The method is @@ -101,7 +99,7 @@ func (a *httpArtifact) do() (data []byte, err error) { } // Cure returns syscall.ENOTSUP. Callers should use Data instead. -func (a *httpArtifact) Cure(*check.Absolute, *check.Absolute, CacheDataFunc) error { +func (a *httpArtifact) Cure(*CureContext) error { return syscall.ENOTSUP } -- cgit v1.3.1