Commit 32d1a000 authored by Michael Yang's avatar Michael Yang
Browse files

remove unused requestContextKey

parent 04e21282
...@@ -1137,8 +1137,6 @@ func GetSHA256Digest(r io.Reader) (string, int) { ...@@ -1137,8 +1137,6 @@ func GetSHA256Digest(r io.Reader) (string, int) {
return fmt.Sprintf("sha256:%x", h.Sum(nil)), int(n) return fmt.Sprintf("sha256:%x", h.Sum(nil)), int(n)
} }
type requestContextKey string
// Function to check if a blob already exists in the Docker registry // Function to check if a blob already exists in the Docker registry
func checkBlobExistence(ctx context.Context, mp ModelPath, digest string, regOpts *RegistryOptions) (bool, error) { func checkBlobExistence(ctx context.Context, mp ModelPath, digest string, regOpts *RegistryOptions) (bool, error) {
requestURL := mp.BaseURL() requestURL := mp.BaseURL()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment