-
Notifications
You must be signed in to change notification settings - Fork 4
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
[draft] add limitations for restart and wait between restarts #50
[draft] add limitations for restart and wait between restarts #50
Conversation
0682fa3
to
bbe39d5
Compare
bbe39d5
to
483d904
Compare
17a9cbc
to
6d8b006
Compare
pkg/rolling/restart_handler.go
Outdated
} | ||
|
||
func (rh *restartHandler) stop() { | ||
rh.onceDone.Do(func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not convinced it is necessary. What are you protecting against? The channel should be closed only once in your code - if you somehow call stop
twice, it is your problem and signifies some deeper issue with the code. I currently think we MUST NOT cover closing this channel with a sync.once
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
5278602
to
fd38330
Compare
Options and description