From 9bc42f532b5ac6f2722a06f65107edabd2898a85 Mon Sep 17 00:00:00 2001 From: Josh Yan Date: Mon, 12 Aug 2024 09:45:44 -0700 Subject: [PATCH] rmv api type --- api/types.go | 1 - cmd/cmd.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/api/types.go b/api/types.go index 4dc6f15c..2f5a9424 100644 --- a/api/types.go +++ b/api/types.go @@ -370,7 +370,6 @@ type ProgressResponse struct { Digest string `json:"digest,omitempty"` Total int64 `json:"total,omitempty"` Completed int64 `json:"completed,omitempty"` - Type string `json:"quantize,omitempty"` } // PushRequest is the request passed to [Client.Push]. diff --git a/cmd/cmd.go b/cmd/cmd.go index a5330716..2156542d 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -137,7 +137,7 @@ func CreateHandler(cmd *cobra.Command, args []string) error { } bar.Set(resp.Completed) - } else if resp.Type == "quantize" { + } else if strings.Contains(resp.Status, "quantizing") { spinner.Stop() if quantizeSpin != nil {