diff --git a/server/images.go b/server/images.go index 9fc2be94..651411e2 100644 --- a/server/images.go +++ b/server/images.go @@ -974,7 +974,7 @@ func PushModel(ctx context.Context, name string, regOpts *RegistryOptions, fn fu continue } - if err := uploadBlobChunked(ctx, mp, location, layer, regOpts, fn); err != nil { + if err := uploadBlobChunked(ctx, location, layer, regOpts, fn); err != nil { log.Printf("error uploading blob: %v", err) return err } diff --git a/server/upload.go b/server/upload.go index e1d8a17d..cf51eea6 100644 --- a/server/upload.go +++ b/server/upload.go @@ -40,7 +40,7 @@ func startUpload(ctx context.Context, mp ModelPath, layer *Layer, regOpts *Regis return url.Parse(location) } -func uploadBlobChunked(ctx context.Context, mp ModelPath, requestURL *url.URL, layer *Layer, regOpts *RegistryOptions, fn func(api.ProgressResponse)) error { +func uploadBlobChunked(ctx context.Context, requestURL *url.URL, layer *Layer, regOpts *RegistryOptions, fn func(api.ProgressResponse)) error { // TODO allow resumability // TODO allow canceling uploads via DELETE