aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/pkg/net.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-06 00:56:49 +0900
committerOphestra <cat@gensokyo.uk>2026-01-06 00:56:49 +0900
commite91049c3c5a81bc18fb5394de92a6d7617421938 (patch)
tree56d00fab2bc16547de1ccfffb1386b8cf29519c8 /internal/pkg/net.go
parent3d4d32932df47816be751062f2f9e77cc38d0148 (diff)
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/net.go')
-rw-r--r--internal/pkg/net.go4
1 files changed, 1 insertions, 3 deletions
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
}