graceful shutdown

This commit is contained in:
2026-05-07 10:20:45 -06:00
parent 6e2b50fab7
commit 0a41b9186f
3 changed files with 33 additions and 6 deletions
+4
View File
@@ -69,6 +69,10 @@ func NewCache(cacheRoot string, mirrorURLs []string, mirroredRepos []string) (*C
}, nil
}
func (c *Cache) Close() error {
return c.cr.Close()
}
type UpstreamError struct {
StatusCode int
}