mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-20 09:33:52 +00:00
style
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user