remove unused parameter
This commit is contained in:
parent
246dc65417
commit
16b06699fd
2 changed files with 2 additions and 2 deletions
|
@ -974,7 +974,7 @@ func PushModel(ctx context.Context, name string, regOpts *RegistryOptions, fn fu
|
||||||
continue
|
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)
|
log.Printf("error uploading blob: %v", err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@ func startUpload(ctx context.Context, mp ModelPath, layer *Layer, regOpts *Regis
|
||||||
return url.Parse(location)
|
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 resumability
|
||||||
// TODO allow canceling uploads via DELETE
|
// TODO allow canceling uploads via DELETE
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue