mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 21:12:07 +00:00
Merge pull request #84487 from zxl381/IFP_Err
Fix a data race in registrytest
This commit is contained in:
commit
afedb845f6
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user