mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #107217 from Monokaix/used-arg-in-kubeadm/WaitForHealthyKubelet
Remove unused arg of kubeadm/WaitForKubeletAndFunc
This commit is contained in:
		@@ -166,11 +166,11 @@ func (w *KubeWaiter) WaitForKubeletAndFunc(f func() error) error {
 | 
			
		||||
		}
 | 
			
		||||
	}(errorChan, w)
 | 
			
		||||
 | 
			
		||||
	go func(errC chan error, waiter Waiter) {
 | 
			
		||||
	go func(errC chan error) {
 | 
			
		||||
		// This main goroutine sends whatever the f function returns (error or not) to the channel
 | 
			
		||||
		// This in order to continue on success (nil error), or just fail if the function returns an error
 | 
			
		||||
		errC <- f()
 | 
			
		||||
	}(errorChan, w)
 | 
			
		||||
	}(errorChan)
 | 
			
		||||
 | 
			
		||||
	// This call is blocking until one of the goroutines sends to errorChan
 | 
			
		||||
	return <-errorChan
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user