mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Remove unused arg of kubeadm/WaitForKubeletAndFunc
This commit is contained in:
parent
65ac7f09ec
commit
eab74f15a5
@ -166,11 +166,11 @@ func (w *KubeWaiter) WaitForKubeletAndFunc(f func() error) error {
|
|||||||
}
|
}
|
||||||
}(errorChan, w)
|
}(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 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
|
// This in order to continue on success (nil error), or just fail if the function returns an error
|
||||||
errC <- f()
|
errC <- f()
|
||||||
}(errorChan, w)
|
}(errorChan)
|
||||||
|
|
||||||
// This call is blocking until one of the goroutines sends to errorChan
|
// This call is blocking until one of the goroutines sends to errorChan
|
||||||
return <-errorChan
|
return <-errorChan
|
||||||
|
Loading…
Reference in New Issue
Block a user