Skip to content

Conversation

@seblegall
Copy link
Contributor

This PR plus the progress bar shown when the -wait is passed to the apply command. on the event system.

@coveralls
Copy link

coveralls commented Mar 5, 2019

Coverage Status

Coverage increased (+0.5%) to 50.51% when pulling c446c36 on feat/plug-progress-bar-on-namespace-event-system into aeff730 on master.

}()

//register for event listening
ns.AddListener("cli_progress_bar")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to register the listener before starting the watcher to prevent missing event


//Init timer
timerCh := time.NewTimer(timeout).C
doneCh := make(chan bool)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to make a buffered chanel make(chan bool, 1) because you will only put one value inside and exist the func after so the goroutine will stop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants