Merge pull request #84487 from zxl381/IFP_Err

Fix a data race in registrytest
This commit is contained in:
Kubernetes Prow Robot 2019-11-03 11:37:39 -08:00 committed by GitHub
commit afedb845f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,5 +114,7 @@ func (r *NodeRegistry) DeleteNode(ctx context.Context, nodeID string) error {
}
func (r *NodeRegistry) WatchNodes(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error) {
r.Lock()
defer r.Unlock()
return nil, r.Err
}