From 5e8eb850e78a3ed06d20973fbaaae9c996e92a19 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 16 Nov 2022 15:01:55 +0100 Subject: [PATCH 1/2] Fix download progress bar (not always displayed) --- cli/output/rpc_progress.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/output/rpc_progress.go b/cli/output/rpc_progress.go index a35f99a53af..2758f5ed78f 100644 --- a/cli/output/rpc_progress.go +++ b/cli/output/rpc_progress.go @@ -89,6 +89,7 @@ func NewDownloadProgressBarCB() func(*rpc.DownloadProgress) { } else { feedback.Print(label + " " + msg) } + started = false } } } From bdfc06af743325709f470558dce6e850f659da19 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 16 Nov 2022 15:19:00 +0100 Subject: [PATCH 2/2] Remove debug leftovers --- cli/output/rpc_progress.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cli/output/rpc_progress.go b/cli/output/rpc_progress.go index 2758f5ed78f..f2e478d67fc 100644 --- a/cli/output/rpc_progress.go +++ b/cli/output/rpc_progress.go @@ -64,7 +64,6 @@ func NewDownloadProgressBarCB() func(*rpc.DownloadProgress) { mux.Lock() defer mux.Unlock() - // fmt.Printf(">>> %v\n", curr) if start := curr.GetStart(); start != nil { label = start.GetLabel() bar = pb.New(0)