Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove break. #6338

Merged
merged 1 commit into from
Nov 19, 2019
Merged

remove break. #6338

merged 1 commit into from
Nov 19, 2019

Conversation

johncming
Copy link
Contributor

Remove extra break

func() error {
// Don't forget to release the reloadReady channel so that waiting blocks can exit normally.
select {
case <-term:
level.Warn(logger).Log("msg", "Received SIGTERM, exiting gracefully...")
reloadReady.Close()
case <-webHandler.Quit():
level.Warn(logger).Log("msg", "Received termination request via web service, exiting gracefully...")
case <-cancel:
reloadReady.Close()
break
}
return nil

Signed-off-by: johncming johncming@yahoo.com

Signed-off-by: johncming <johncming@yahoo.com>
@codesome codesome merged commit ad4bc57 into prometheus:master Nov 19, 2019
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.

2 participants