Skip to content

Commit 7ddbd38

Browse files
author
Matt Cadorette
authored
fix: use buffered channel for downloadComplete to prevent blocking (#1617)
Prior to this commit if an error occurred before the download progress function could start, the CLI would block writing to the downloadComplete channel
1 parent ef808de commit 7ddbd38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/cmd/component.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ func runComponentsInstall(cmd *cobra.Command, args []string) (err error) {
413413
func installComponent(args []string) (err error) {
414414
var (
415415
componentName string = args[0]
416-
downloadComplete = make(chan int8)
416+
downloadComplete = make(chan int8, 1)
417417
params map[string]interface{} = make(map[string]interface{})
418418
start time.Time
419419
)

0 commit comments

Comments
 (0)