mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
style
This commit is contained in:
parent
fa1fbe88c1
commit
014165ded6
@ -122,10 +122,8 @@ func (f *FakeEtcdClient) Watch(prefix string, waitIndex uint64, recursive bool,
|
|||||||
f.WatchInjectError = injectedError
|
f.WatchInjectError = injectedError
|
||||||
f.nrUnreadyChannels.Done()
|
f.nrUnreadyChannels.Done()
|
||||||
|
|
||||||
defer func() {
|
// After calling this function, the WatchStop channel will not be ready
|
||||||
// After calling this function, the WatchStop channel will not be ready
|
defer f.nrUnreadyChannels.Add(3)
|
||||||
f.nrUnreadyChannels.Add(3)
|
|
||||||
}()
|
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-stop:
|
case <-stop:
|
||||||
|
Loading…
Reference in New Issue
Block a user