-
Notifications
You must be signed in to change notification settings - Fork 303
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
Rename context's hcLock to lock #413
Conversation
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.
/lgtm
pkg/context/context.go
Outdated
@@ -152,8 +153,8 @@ type HealthCheckResults map[string]error | |||
|
|||
// HealthCheck runs all registered healthcheck functions. | |||
func (ctx *ControllerContext) HealthCheck() HealthCheckResults { | |||
ctx.hcLock.Lock() | |||
defer ctx.hcLock.Unlock() | |||
ctx.locl.Lock() |
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.
locl -> lock
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.
Fixed.
/lgtm |
Makes it easier for other stuff to use the lock :)
/assign @MrHohn